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

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

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)
MinMax(F, F)
MaxAbs

Trait Implementations

impl<F: Clone + Float> Clone for ScalingMethod<F>[src]

impl<F: Debug + Float> Debug for ScalingMethod<F>[src]

impl<F: Float> Display for ScalingMethod<F>[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for ScalingMethod<F> where
    F: RefUnwindSafe

impl<F> Send for ScalingMethod<F>

impl<F> Sync for ScalingMethod<F>

impl<F> Unpin for ScalingMethod<F> where
    F: Unpin

impl<F> UnwindSafe for ScalingMethod<F> where
    F: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,