Class MaxAbsScaler

java.lang.Object
smile.feature.transform.MaxAbsScaler

public class MaxAbsScaler extends Object
Scales each feature by its maximum absolute value. This class scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. It does not shift/center the data, and thus does not destroy any sparsity.
  • Constructor Details

    • MaxAbsScaler

      public MaxAbsScaler()
  • Method Details

    • fit

      public static InvertibleColumnTransform fit(DataFrame data, String... columns)
      Fits the data transformation.
      Parameters:
      data - the training data.
      columns - the columns to transform. If empty, transform all the numeric columns.
      Returns:
      the transform.