pub trait Transformer<T> {
// Required methods
fn fit(&mut self, inputs: &T) -> Result<(), Error>;
fn transform(&mut self, inputs: T) -> Result<T, Error>;
}Expand description
Trait for data transformers
Required Methods§
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.