pub trait UnSupModel<T, U> {
// Required methods
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.