pub fn run_classifier(args: &Value, span: Span) -> Result<Value, Diagnostic>Expand description
Inference.run_classifier — run a statistical classifier (KNN, NB, or SVM).
Takes method (string: “knn”, “naive_bayes”, or “svm”),
features (list of f64 — training features, n*p row-major),
labels (list of u64 — training labels),
n (u64 — number of training samples),
p (u64 — feature dimension),
query (list of f64 — query features, length p).
Returns predicted (u64 or bool for SVM).