Home > @josh-brown/vector > LinearRegressor > train
Learns the optimal set of parameters for the model.
Signature:
train(data: Matrix, target: Vector): void;|
Parameter |
Type |
Description |
|---|---|---|
|
data |
A Matrix whose rows are the individual observations in the training set | |
|
target |
A Vector whose entries are the target values in the training set |
Returns:
void