Trait rustlearn::traits::SupervisedModel [] [src]

pub trait SupervisedModel<T> {
    fn fit(&mut self, X: T, y: &Array) -> Result<(), &'static str>;
    fn decision_function(&self, X: T) -> Result<Array, &'static str>;

    fn predict(&self, x: T) -> Result<Array, &'static str> { ... }
}

Trait describing supervised models.

Required Methods

fn fit(&mut self, X: T, y: &Array) -> Result<(), &'static str>

fn decision_function(&self, X: T) -> Result<Array, &'static str>

Provided Methods

fn predict(&self, x: T) -> Result<Array, &'static str>

Implementors