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

Predict output from inputs.

Train the model using inputs.

Implementors

Train the model and predict the model output from new data.