Package smile.feature.transform
Class MaxAbsScaler
java.lang.Object
smile.feature.transform.MaxAbsScaler
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 Summary
-
Method Summary
-
Constructor Details
-
MaxAbsScaler
public MaxAbsScaler()
-
-
Method Details
-
fit
Fits the data transformation.- Parameters:
data
- the training data.columns
- the columns to transform. If empty, transform all the numeric columns.- Returns:
- the transform.
-