fit method

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

Fit model with labels in {-1, +1}.

Implementation

void fit(
  List<List<double>> X,
  List<int> y, {
  double lr = 0.01,
  int epochs = 500,
  double C = 1.0,
}) {
  _model = trainLinearSVM(X, y, lr: lr, epochs: epochs, C: C);
}