Trait rusty_machine::data::transforms::Transformer
[−]
[src]
pub trait Transformer<T> { fn fit(&mut self, inputs: &T) -> Result<(), Error>; fn transform(&mut self, inputs: T) -> Result<T, Error>; }
Trait for data transformers
Required Methods
fn fit(&mut self, inputs: &T) -> Result<(), Error>
Fit Transformer to input data, and stores the transformation in the Transformer
fn transform(&mut self, inputs: T) -> Result<T, Error>
Transforms the inputs and stores the transformation in the Transformer
Implementors
impl<T: Float> Transformer<Matrix<T>> for MinMaxScaler<T>
impl<T: Float + FromPrimitive> Transformer<Matrix<T>> for Standardizer<T>
impl<R: Rng, T> Transformer<Matrix<T>> for Shuffler<R>