Extends
- module:eclairjs/mllib/regression.RegressionModel
Methods
(static) load(path) → {module:eclairjs/mllib/regression.LinearRegressionModel}
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Returns:
(static) read() → {MLReader}
Returns:
- Type
- MLReader
coefficients() → {module:eclairjs/mllib/linalg.Vector}
Returns:
copy(extra) → {module:eclairjs/mllib/regression.LinearRegressionModel}
Parameters:
Name | Type | Description |
---|---|---|
extra |
module:eclairjs/ml/param.ParamMap |
Returns:
hasSummary() → {Promise.<boolean>}
Indicates whether a training summary exists for this model instance.
Returns:
- Type
- Promise.<boolean>
intercept() → {Promise.<number>}
Returns:
- Type
- Promise.<number>
summary() → {module:eclairjs/ml/regression.LinearRegressionTrainingSummary}
Gets summary (e.g. residuals, mse, r-squared ) of model on training set. An exception is
thrown if `trainingSummary == None`.
Returns:
uid() → {Promise.<string>}
An immutable unique ID for the object and its derivatives.
Returns:
- Type
- Promise.<string>
weights() → {module:eclairjs/mllib/linalg.Vector}
Returns:
weights() → {module:eclairjs/mllib/linalg.Vector}
Returns:
write() → {MLWriter}
Returns a MLWriter instance for this ML instance.
For [[LinearRegressionModel]], this does NOT currently save the training summary.
An option to save summary may be added in the future.
This also does not save the parent currently.
Returns:
- Type
- MLWriter