Home > @josh-brown/vector > LinearRegressor
A Regressor model which uses an ordinary least squares model with regularization to predict a continuous target. The optimal set of parameters is computed with gradient descent.
Signature:
export declare class LinearRegressor implements Regressor<LinearRegressorHyperparams> Implements: Regressor<LinearRegressorHyperparams>
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
|
Method |
Modifiers |
Description |
|---|---|---|
|
Return the full set of hyperparameters used to train the model, including defaults. | ||
|
Get the coefficients of the trained linear regression model, or | ||
|
Uses the learned parameters to make predictions based on a set of input data. | ||
|
Learns the optimal set of parameters for the model. |