module grammar_sklearn.g_sklearn_preprocessing

Short summary

module mlprodict.grammar_sklearn.g_sklearn_preprocessing

Converters from scikit-learn model.

source on GitHub

Functions

function

truncated documentation

sklearn_standard_scaler

Converts a standard scaler

Documentation

Converters from scikit-learn model.

source on GitHub

mlprodict.grammar_sklearn.g_sklearn_preprocessing.sklearn_standard_scaler(model, input_names=None, output_names=None, **kwargs)

Converts a standard scaler model into a grammar model (semantic graph representation).

Parameters
  • model – scikit-learn model

  • input_names – name of the input features

  • output_names – name of the output predictions

  • kwargs – additional parameters (none)

Returns

graph model

If input is None or output is None, default values will be given to the outputs ['Prediction', 'Score'] for the outputs. If input_names is None, it wil be 'Features'.

No additional parameters is considered.

source on GitHub