validation#

Tabular objects validation utilities.

Functions

model_type_validation(model)

Receive any object and check if it's an instance of a model we support.

validate_model(data, model)

Check model is able to predict on the dataset.

ensure_dataframe_type(obj)

Ensure that given object is of type DataFrame or Dataset and return it as DataFrame.

ensure_predictions_shape(pred, data)

Ensure the predictions are in the right shape and if so return them.

ensure_predictions_proba(pred_proba, data)

Ensure the predictions are in the right shape and if so return them.