pub trait Classifier<Features, Label: Eq + Clone>where
Self: Sized,{
// Required methods
fn fit<I>(arr: &Features, y: I) -> Option<Self>
where for<'a> &'a I: IntoIterator<Item = &'a Label>;
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 make a 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.