Class: Estimator

eclairjs/ml. Estimator

Abstract class for estimators that fit models to data.

Constructor

new Estimator()

Source:

Extends

Methods

(abstract) copy(extra) → {module:eclairjs/ml.Estimator}

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

extractParamMap() → {module:eclairjs/ml/param.ParamMap}

Source:
Returns:
Type
module:eclairjs/ml/param.ParamMap

fit(dataset, paramMapopt) → {module:eclairjs/ml.Estimator|module:eclairjs/ml/feature.Bucketizer}

Fits a model to the input data.
Parameters:
Name Type Attributes Description
dataset module:eclairjs/sql.DataFrame
paramMap module:eclairjs/ml/param.ParamMap <optional>
Parameter map. These values override any specified in this Estimator's embedded ParamMap.
Source:
Returns:
fitted model
Type
module:eclairjs/ml.Estimator | module:eclairjs/ml/feature.Bucketizer

transformSchema(schema) → {module:eclairjs/sql/types.StructType}

Derives the output schema from the input schema.
Parameters:
Name Type Description
schema module:eclairjs/sql/types.StructType
Inherited From:
Source:
Returns:
Type
module:eclairjs/sql/types.StructType