pub struct MinMaxFitter<T: Float> { /* private fields */ }
Expand description

A builder used to construct a MinMaxScaler

Implementations

Construct a new MinMaxFitter with specified mean and standard deviation.

Note that this function does not create a Transformer only a builder which can be used to produce a fitted Transformer.

Examples
use rusty_machine::data::transforms::MinMaxFitter;
use rusty_machine::linalg::Matrix;

let fitter = MinMaxFitter::new(0.0, 1.0);

// We can call `fit` from the `transform::TransformFitter`
// trait to create a `MinMaxScaler` used to actually transform data.
use rusty_machine::data::transforms::TransformFitter;
let mat = Matrix::new(2,2,vec![1.0, 2.0, 3.0, 5.0]);
let transformer = fitter.fit(&mat);

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Fit the inputs to create the Transformer

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.