public class Standardizer extends FeatureTransform
RobustStandardizer
.copy
Constructor and Description |
---|
Standardizer()
Constructor.
|
Standardizer(boolean copy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
learn(smile.data.Attribute[] attributes,
double[][] data)
Learns transformation parameters from a dataset.
|
java.lang.String |
toString() |
double[] |
transform(double[] x)
Transform a feature vector.
|
learn, transform
public Standardizer()
public Standardizer(boolean copy)
copy
- If false, try to avoid a copy and do inplace scaling instead.public void learn(smile.data.Attribute[] attributes, double[][] data)
FeatureTransform
learn
in class FeatureTransform
attributes
- The variable attributes. Of which, numeric variables
will be standardized.data
- The training data to learn scaling parameters.
The data will not be modified.public double[] transform(double[] x)
FeatureTransform
transform
in class FeatureTransform
x
- a feature vector.public java.lang.String toString()
toString
in class java.lang.Object