converters.sklearn._sklearn_util

Module Contents

Functions

check_fitted(model,func) Check if a model is fitted. Raise error if not.
check_expected_type(model,expected_type) Check if a model is of the right type. Raise error if not.
check_fitted(model, func)

Check if a model is fitted. Raise error if not.

model: model
Any scikit-learn model
func: model
Function to check if a model is not trained.
check_expected_type(model, expected_type)

Check if a model is of the right type. Raise error if not.

model: model
Any scikit-learn model
expected_type: Type
Expected type of the scikit-learn.