pub trait Classifier<Features, Label>where
Label: Clone,{
// Required methods
fn labels(&self) -> &[Label];
fn predict_proba<I>(&self, arr: I) -> Option<Array2<f64>>
where I: Iterator<Item = Features>;
// Provided method
fn predict<I>(&self, arr: I) -> Option<Vec<Label>>
where I: Iterator<Item = Features> { ... }
}Expand description
Trait to interface with a fitted classification model
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.