pub trait Classifier<Features, Label>where
Label: Clone,{
// Required methods
fn labels(&self) -> &[Label];
fn predict_proba(&self, arr: &Features) -> Option<Array2<f64>>;
// Provided method
fn predict(&self, arr: &Features) -> Option<Vec<Label>> { ... }
}Expand description
Trait to interface with a fitted classification model