Trait rusty_machine::learning::UnSupModel
source · [−]pub trait UnSupModel<T, U> {
fn predict(&self, inputs: &T) -> LearningResult<U>;
fn train(&mut self, inputs: &T) -> LearningResult<()>;
}
Expand description
Trait for unsupervised model.
Required Methods
sourcefn predict(&self, inputs: &T) -> LearningResult<U>
fn predict(&self, inputs: &T) -> LearningResult<U>
Predict output from inputs.
sourcefn train(&mut self, inputs: &T) -> LearningResult<()>
fn train(&mut self, inputs: &T) -> LearningResult<()>
Train the model using inputs.
Implementors
impl UnSupModel<Matrix<f64>, Matrix<f64>> for GaussianMixtureModel
impl UnSupModel<Matrix<f64>, Matrix<f64>> for PCA
Train the model and predict the model output from new data.