Enum linfa_preprocessing::linear_scaling::ScalingMethod[][src]

pub enum ScalingMethod<F: Float> {
    Standard(boolbool),
    MinMax(F, F),
    MaxAbs,
}
Expand description

Possible scaling methods for LinearScaler

  • Standard (with mean, with std): subtracts the mean to each feature and scales it by the inverse of its standard deviation
  • MinMax (min, max): scales each feature to fit in the range [min,max], default values are [0,1]
  • MaxAbs: scales each feature by the inverse of its maximum absolute value, so that it fits the range [-1,1]

Variants

Standard(boolbool)

Tuple Fields of Standard

0: bool1: bool
MinMax(F, F)

Tuple Fields of MinMax

0: F1: F
MaxAbs

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.