Trait rusty_machine::data::transforms::Transformer
source · [−]pub trait Transformer<T> {
fn transform(&mut self, inputs: T) -> LearningResult<T>;
}
Expand description
Trait for data transformers
Required Methods
sourcefn transform(&mut self, inputs: T) -> LearningResult<T>
fn transform(&mut self, inputs: T) -> LearningResult<T>
Transforms the inputs
Implementors
impl<R: Rng, T> Transformer<Matrix<T>> for Shuffler<R>
The Shuffler
will transform the input Matrix
by shuffling
its rows in place.
Under the hood this uses a Fisher-Yates shuffle.