Trait UnsupervisedLearn
tinguely::model
pub trait UnsupervisedLearn<T, U> { fn train(&mut self, input: &T); fn predict(&self, input: &T) -> U; }
fn train(&mut self, input: &T)
fn predict(&self, input: &T) -> U
impl UnsupervisedLearn<Matrix<f64>, Vector<f64>> for KMeans
fn train<'a, 'b>(&'a mut self, input: &'b Matrix<f64>)
Trains the model with the given samples
fn predict<'a, 'b>(&'a self, input: &'b Matrix<f64>) -> Vector<f64>