predictOne method

double predictOne(
  1. List<double> features
)

Predict a single example's target value.

Implementation

double predictOne(List<double> features) {
  if (_coeffs == null) throw StateError('Model not fitted');
  return linearRegressionPredict(_coeffs!, features);
}