module grammar_sklearn.g_sklearn_type_helpers

Short summary

module mlprodict.grammar_sklearn.g_sklearn_type_helpers

Tiny helpers for scikit-learn exporters.

source on GitHub

Functions

function

truncated documentation

check_type

Raises an exception if the model is not of the expected type.

Documentation

Tiny helpers for scikit-learn exporters.

source on GitHub

mlprodict.grammar_sklearn.g_sklearn_type_helpers.check_type(model, model_type)[source]

Raises an exception if the model is not of the expected type.

Parameters
  • modelscikit-learn model

  • model_type – expected type

source on GitHub