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

A builder used to construct a Standardizer

Implementations

Construct a new StandardizerFitter 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::StandardizerFitter;
use rusty_machine::linalg::Matrix;

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

// We can call `fit` from the `transform::TransformFitter`
// trait to create a `Standardizer` 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.