Class: LinearRegressionModel

eclairjs/ml/regression.LinearRegressionModel

Constructor

new LinearRegressionModel()

Source:

Extends

  • module:eclairjs/mllib/regression.RegressionModel

Methods

(static) load(path) → {module:eclairjs/mllib/regression.LinearRegressionModel}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
module:eclairjs/mllib/regression.LinearRegressionModel

(static) read() → {MLReader}

Source:
Returns:
Type
MLReader

coefficients() → {module:eclairjs/mllib/linalg.Vector}

Source:
Returns:
Type
module:eclairjs/mllib/linalg.Vector

copy(extra) → {module:eclairjs/mllib/regression.LinearRegressionModel}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Source:
Returns:
Type
module:eclairjs/mllib/regression.LinearRegressionModel

hasSummary() → {Promise.<boolean>}

Indicates whether a training summary exists for this model instance.
Source:
Returns:
Type
Promise.<boolean>

intercept() → {Promise.<number>}

Source:
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`.
Source:
Returns:
Type
module:eclairjs/ml/regression.LinearRegressionTrainingSummary

uid() → {Promise.<string>}

An immutable unique ID for the object and its derivatives.
Source:
Returns:
Type
Promise.<string>

weights() → {module:eclairjs/mllib/linalg.Vector}

Source:
Returns:
Type
module:eclairjs/mllib/linalg.Vector

weights() → {module:eclairjs/mllib/linalg.Vector}

Source:
Returns:
Type
module:eclairjs/mllib/linalg.Vector

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.
Source:
Returns:
Type
MLWriter