dislib.preprocessing¶
Classes¶
-
class
dislib.preprocessing.classes.
StandardScaler
[source]¶ Bases:
object
Standardize features by removing the mean and scaling to unit variance
Centering and scaling happen independently on each feature by computing the relevant statistics on the samples in the training set. Mean and standard deviation are then stored to be used on later data using the transform method.
Variables: - mean (ds-array, shape (1, n_features)) – The mean value for each feature in the training set.
- var (ds-array, shape (1, n_features)) – The variance for each feature in the training set.
-
fit
(x)[source]¶ Compute the mean and std to be used for later scaling.
Parameters: x (ds-array, shape=(n_samples, n_features)) Returns: self Return type: StandardScaler