Package smile.feature.transform
Class Standardizer
java.lang.Object
smile.feature.transform.Standardizer
Standardizes numeric feature to 0 mean and unit variance.
Standardization makes an assumption that the data follows
a Gaussian distribution and are also not robust when outliers present.
A robust alternative is to subtract the median and divide by the IQR
by
RobustStandardizer
.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Standardizer
public Standardizer()
-
-
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.
-