predict method

List<int> predict(
  1. List<List<double>> X
)

Predict multiple examples.

Implementation

List<int> predict(List<List<double>> X) => X.map(predictOne).toList();