fit method

void fit(
  1. List<List<double>> X,
  2. List<double> y
)

Fit the model to features X and targets y.

Implementation

void fit(List<List<double>> X, List<double> y) {
  _coeffs = linearRegressionFit(X, y);
}