int predictOne(List<double> q) { if (_x == null || _y == null) throw StateError('Model not fitted'); return knnPredict(_x!, _y!, q, _k); }