Predict labels for multiple examples.
List<int> predict(List<List<double>> X) => X.map(predictOne).toList();