Skip to content

checks

is_valid_model(model)

checks whether the customer model is a valid model

Source code in src/antakia/utils/checks.py
1
2
3
4
5
def is_valid_model(model) -> bool:
    """
    checks whether the customer model is a valid model
    """
    return callable(getattr(model, "score")) and callable(getattr(model, "predict"))