fit method

void fit(
  1. List<List<double>> X,
  2. List<int> y, {
  3. double lr = 0.1,
  4. int epochs = 500,
})

Fit the logistic regression model.

Implementation

void fit(
  List<List<double>> X,
  List<int> y, {
  double lr = 0.1,
  int epochs = 500,
}) {
  _weights = logisticRegressionFit(X, y, lr: lr, epochs: epochs);
}