UnSupModel

Trait UnSupModel 

Source
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§

Source

fn predict(&self, inputs: &T) -> LearningResult<U>

Predict output from inputs.

Source

fn train(&mut self, inputs: &T) -> LearningResult<()>

Train the model using inputs.

Implementors§