Skip to content

Latest commit

 

History

History
70 lines (33 loc) · 984 Bytes

File metadata and controls

70 lines (33 loc) · 984 Bytes

Home > @josh-brown/vector > LinearRegressor > train

LinearRegressor.train() method

Learns the optimal set of parameters for the model.

Signature:

train(data: Matrix, target: Vector): void;

Parameters

Parameter

Type

Description

data

Matrix

A Matrix whose rows are the individual observations in the training set

target

Vector

A Vector whose entries are the target values in the training set

Returns:

void