Skip to content

Function: modelGraphFromSklearn()

ts
function modelGraphFromSklearn(root, opts?): ModelGraph;

Defined in: ml/model.ts:446

Build a ModelGraph from a scikit-learn Pipeline / ColumnTransformer / FeatureUnion tree: sequential steps chain, parallel branches fan out from the previous step and fan back in to the next one.

Parameters

ParameterType
rootSklearnStep
optsAdapterOptions

Returns

ModelGraph

MIT licensed. WebGL2 required.