Class: Model

eclairjs/ml.Model

A fitted model, i.e., a module:eclairjs/ml.Transformer produced by an module:eclairjs/ml.Estimator.

Constructor

new Model()

Source:

Extends

Methods

copy(extra) → {object}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Overrides:
Source:
Returns:
Type
object

hasParent() → {Promise.<boolean>}

Indicates whether this Model has a corresponding parent.
Source:
Returns:
Type
Promise.<boolean>

parent() → {module:eclairjs/ml.Estimator}

Source:
Returns:
Type
module:eclairjs/ml.Estimator

setParent(parent) → {object}

Sets the parent of this model.
Parameters:
Name Type Description
parent module:eclairjs/ml.Estimator
Source:
Returns:
Type
object

transform(dataset, paramsopt, …otherParamPairsopt) → {module:eclairjs/sql.Dataset}

Transforms the dataset with optional parameters
Parameters:
Name Type Attributes Description
dataset module:eclairjs/sql.Dataset input dataset
params module:eclairjs/ml/param.ParamMap | module:eclairjs/ml/param.ParamPair <optional>
additional parameters, overwrite embedded params, overwrite embedded params
otherParamPairs module:eclairjs/ml/param.ParamPair <optional>
<repeatable>
other param pairs, Only used if argument two is module:eclairjs/ml/param.ParamPair. Overwrite embedded params
Inherited From:
Source:
Returns:
transformed dataset
Type
module:eclairjs/sql.Dataset