cratepy.clustering.clusteringdata.StandardScaler¶
- class StandardScaler[source]¶
Bases:
Standardizer
Standard scaling algorithm (wrapper).
Transform features by removing the mean and scaling to unit variance (standard normal distribution).
Documentation: see here.
Standardization algorithm constructor.
List of Public Methods
Standardize provided data matrix.
Methods
- get_standardized_data_matrix(data_matrix)[source]¶
Standardize provided data matrix.
- Parameters:
data_matrix (numpy.ndarray (2d)) – Data matrix to be standardized (numpy.ndarray of shape (n_items, n_features)).
- Returns:
data_matrix – Transformed data matrix (numpy.ndarray of shape (n_items, n_features)).
- Return type:
numpy.ndarray (2d)