Trait rusty_machine::data::transforms::Transformer [] [src]

pub trait Transformer<T> {
    fn transform(&mut self, inputs: T) -> Result<T, Error>;
    fn inv_transform(&self, inputs: T) -> Result<T, Error>;
}

Trait for data transformers

Required Methods

fn transform(&mut self, inputs: T) -> Result<T, Error>

Transforms the inputs and stores the transformation in the Transformer

fn inv_transform(&self, inputs: T) -> Result<T, Error>

Maps the inputs using the inverse of the fitted transform.

Implementors