Struct rusty_machine::data::transforms::normalize::Normalizer
source · [−]pub struct Normalizer<T: Float, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,{ /* private fields */ }
Expand description
The Normalizer
The Normalizer provides an implementation of Transformer
which allows us to transform the all rows to have the same norm.
The default Normalizer
will use the Euclidean
norm.
See the module description for more information.
Implementations
sourceimpl<T: Float, M> Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
impl<T: Float, M> Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
Trait Implementations
sourceimpl<T: Debug + Float, M: Debug> Debug for Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
impl<T: Debug + Float, M: Debug> Debug for Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
sourceimpl<T: Float> Default for Normalizer<T, Euclidean>
impl<T: Float> Default for Normalizer<T, Euclidean>
Create a Normalizer
with a Euclidean norm.
sourceimpl<T: Float, M> Transformer<Matrix<T>> for Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
impl<T: Float, M> Transformer<Matrix<T>> for Normalizer<T, M>where
for<'a> M: MatrixNorm<T, MatrixSlice<'a, T>>,
Auto Trait Implementations
impl<T, M> RefUnwindSafe for Normalizer<T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, M> Send for Normalizer<T, M>where
M: Send,
T: Send,
impl<T, M> Sync for Normalizer<T, M>where
M: Sync,
T: Sync,
impl<T, M> Unpin for Normalizer<T, M>where
M: Unpin,
T: Unpin,
impl<T, M> UnwindSafe for Normalizer<T, M>where
M: UnwindSafe,
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