yobx.sklearn.preprocessing.robust_scaler#
- yobx.sklearn.preprocessing.robust_scaler.sklearn_robust_scaler(g: GraphBuilderExtendedProtocol, sts: Dict, outputs: List[str], estimator: RobustScaler, X: str, name: str = 'scaler') str[source]#
Converts a
sklearn.preprocessing.RobustScalerinto ONNX.The implementation respects the
with_centeringandwith_scalingflags:X ──Sub(center_)──► centered ──Div(scale_)──► output (if with_centering) (if with_scaling)When
with_centering=FalsetheSubnode is skipped; whenwith_scaling=FalsetheDivnode is replaced by anIdentity.- Parameters:
g – the graph builder to add nodes to
sts – shapes defined by scikit-learn
estimator – a fitted
RobustScaleroutputs – desired output names
X – input name
name – prefix name for the added nodes
- Returns:
output name