.. _f-mlfeaturizer: module ``mlmodel.ml_featurizer`` ================================ .. inheritance-diagram:: mlinsights.mlmodel.ml_featurizer Short summary +++++++++++++ module ``mlinsights.mlmodel.ml_featurizer`` Featurizers for machine learned models. :githublink:`%|py|5` Classes +++++++ +-------------------------------------------------------------------------------------+---------------------------+ | class | truncated documentation | +=====================================================================================+===========================+ | :class:`FeaturizerTypeError ` | Unable to process a type. | +-------------------------------------------------------------------------------------+---------------------------+ Functions +++++++++ +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==========================================================================================+==========================================================================================================================+ | :func:`is_vector ` | Tells if *X* is a vector. | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`model_featurizer ` | Converts a machine learned model into a function which converts a vector into features produced by the model. It ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`model_featurizer_keras ` | Builds a featurizer from a :epkg:`keras` model It returns a function which returns the output of one particular ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`model_featurizer_lr ` | Builds a featurizer from a :epkg:`scikit-learn:linear_model:LogisticRegression`. It returns a function which returns ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`model_featurizer_rfc ` | Builds a featurizer from a :epkg:`scikit-learn:ensemble:RandomForestClassifier`. It returns a function which returns ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`model_featurizer_torch ` | Builds a featurizer from a :epkg:`torch` model It returns a function which returns the output of one particular ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`wrap_predict_keras ` | Checks types and dimension. Calls *fct* and returns the approriate type. A vector if *X* is a vector, the raw output ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`wrap_predict_sklearn ` | Checks types and dimension. Calls *fct* and returns the approriate type. A vector if *X* is a vector, the raw output ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :func:`wrap_predict_torch ` | Checks types and dimension. Calls *fct* and returns the approriate type. A vector if *X* is a vector, the raw output ... | +------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlinsights.mlmodel.ml_featurizer :members: :special-members: __init__ :show-inheritance: