yobx.sklearn.preprocessing.max_abs_scaler#

yobx.sklearn.preprocessing.max_abs_scaler.sklearn_max_abs_scaler(g: GraphBuilderExtendedProtocol, sts: Dict, outputs: List[str], estimator: MaxAbsScaler, X: str, name: str = 'scaler') str[source]#

Converts a sklearn.preprocessing.MaxAbsScaler into ONNX.

The transformation divides each feature by its maximum absolute value:

X  ──Div(max_abs_)──►  output
Parameters:
  • g – the graph builder to add nodes to

  • sts – shapes defined by scikit-learn

  • estimator – a fitted MaxAbsScaler

  • outputs – desired output names

  • X – input name

  • name – prefix name for the added nodes

Returns:

output name