pub struct MinMaxScaler<T: Float> { /* private fields */ }Expand description
The MinMaxScaler
The MinMaxScaler provides an implementation of Transformer
which allows us to transform the input data to have a new minimum
and maximum per column.
See the module description for more information.
Implementations§
Source§impl<T: Float> MinMaxScaler<T>
impl<T: Float> MinMaxScaler<T>
Sourcepub fn new(min: T, max: T) -> MinMaxScaler<T>
pub fn new(min: T, max: T) -> MinMaxScaler<T>
Constructs a new MinMaxScaler with the specified scale.
§Examples
use rusty_machine::data::transforms::{MinMaxScaler, Transformer};
// Constructs a new `MinMaxScaler` which will give the data
// minimum `0` and maximum `2`.
let transformer = MinMaxScaler::new(0.0, 2.0);Trait Implementations§
Source§impl<T: Float> Default for MinMaxScaler<T>
Create a default MinMaxScaler with minimum of 0 and
maximum of 1.
impl<T: Float> Default for MinMaxScaler<T>
Create a default MinMaxScaler with minimum of 0 and
maximum of 1.
Source§fn default() -> MinMaxScaler<T>
fn default() -> MinMaxScaler<T>
Returns the “default value” for a type. Read more
Source§impl<T: Float> Invertible<Matrix<T>> for MinMaxScaler<T>
impl<T: Float> Invertible<Matrix<T>> for MinMaxScaler<T>
Source§impl<T: Float> Transformer<Matrix<T>> for MinMaxScaler<T>
impl<T: Float> Transformer<Matrix<T>> for MinMaxScaler<T>
Auto Trait Implementations§
impl<T> Freeze for MinMaxScaler<T>where
T: Freeze,
impl<T> RefUnwindSafe for MinMaxScaler<T>where
T: RefUnwindSafe,
impl<T> Send for MinMaxScaler<T>where
T: Send,
impl<T> Sync for MinMaxScaler<T>where
T: Sync,
impl<T> Unpin for MinMaxScaler<T>where
T: Unpin,
impl<T> UnwindSafe for MinMaxScaler<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more