Struct rusty_machine::data::transforms::standardize::Standardizer
source · [−]pub struct Standardizer<T: Float> { /* private fields */ }
Expand description
The Standardizer
The Standardizer provides an implementation of Transformer
which allows us to transform the input data to have a new mean
and standard deviation.
See the module description for more information.
Trait Implementations
sourceimpl<T: Debug + Float> Debug for Standardizer<T>
impl<T: Debug + Float> Debug for Standardizer<T>
sourceimpl<T: Float + FromPrimitive> Invertible<Matrix<T>> for Standardizer<T>
impl<T: Float + FromPrimitive> Invertible<Matrix<T>> for Standardizer<T>
sourcefn inv_transform(&self, inputs: Matrix<T>) -> LearningResult<Matrix<T>>
fn inv_transform(&self, inputs: Matrix<T>) -> LearningResult<Matrix<T>>
Maps the inputs using the inverse of the fitted transform.
sourceimpl<T: Float + FromPrimitive> TransformFitter<Matrix<T>, Standardizer<T>> for StandardizerFitter<T>
impl<T: Float + FromPrimitive> TransformFitter<Matrix<T>, Standardizer<T>> for StandardizerFitter<T>
sourcefn fit(self, inputs: &Matrix<T>) -> LearningResult<Standardizer<T>>
fn fit(self, inputs: &Matrix<T>) -> LearningResult<Standardizer<T>>
Fit the inputs to create the
Transformer
sourceimpl<T: Float + FromPrimitive> Transformer<Matrix<T>> for Standardizer<T>
impl<T: Float + FromPrimitive> Transformer<Matrix<T>> for Standardizer<T>
sourcefn transform(&mut self, inputs: Matrix<T>) -> LearningResult<Matrix<T>>
fn transform(&mut self, inputs: Matrix<T>) -> LearningResult<Matrix<T>>
Transforms the inputs
Auto Trait Implementations
impl<T> RefUnwindSafe for Standardizer<T>where
T: RefUnwindSafe,
impl<T> Send for Standardizer<T>where
T: Send,
impl<T> Sync for Standardizer<T>where
T: Sync,
impl<T> Unpin for Standardizer<T>where
T: Unpin,
impl<T> UnwindSafe for Standardizer<T>where
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more