pyspark.mllib.feature.
StandardScalerModel
Represents a StandardScaler model that can transform vectors.
New in version 1.2.0.
Methods
call(name, *a)
call
Call method of java_model
setWithMean(withMean)
setWithMean
Setter of the boolean which decides whether it uses mean or not
setWithStd(withStd)
setWithStd
Setter of the boolean which decides whether it uses std or not
transform(vector)
transform
Applies standardization transformation on a vector.
Attributes
mean
Return the column mean values.
std
Return the column standard deviation values.
withMean
Returns if the model centers the data before scaling.
withStd
Returns if the model scales the data to unit standard deviation.
Methods Documentation
New in version 1.4.0.
pyspark.mllib.linalg.Vector
pyspark.RDD
Input vector(s) to be standardized.
Standardized vector(s). If the variance of a column is zero, it will return default 0.0 for the column with zero variance.
Notes
In Python, transform cannot currently be used within an RDD transformation or action. Call transform directly on the RDD instead.
Attributes Documentation
New in version 2.0.0.