Class: StandardScaler

StandardScaler()

Standardize features by removing the mean and scaling to unit variance.

Constructor

new StandardScaler()

Source:

Methods

fit(X, y)

Compute the mean and variance to be used for later scaling.
Parameters:
Name Type Default Description
X Array array-like, shape [n_samples, n_features] The data used to compute the mean and standard deviation used for later scaling along the features axis.
y Array null Passthrough for ``Pipeline`` compatibility.
Source:

transform(X, y)

Perform standardization by centering and scaling values of the features.
Parameters:
Name Type Default Description
X Array array-like, shape [n_samples, n_features] The data used to scale along the features axis.
y Array null ignored
Source: