module grammar.grammar_sklearn.g_sklearn_type_helpers
#
Short summary#
module mlprodict.grammar.grammar_sklearn.g_sklearn_type_helpers
Tiny helpers for scikit-learn exporters.
Functions#
function |
truncated documentation |
---|---|
Raises an exception if the model is not of the expected type. |
Documentation#
Tiny helpers for scikit-learn exporters.
- mlprodict.grammar.grammar_sklearn.g_sklearn_type_helpers.check_type(model, model_type)#
Raises an exception if the model is not of the expected type.
- Parameters:
model – scikit-learn model
model_type – expected type