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.

get_standardized_data_matrix(self, data_matrix)[source]

Standardize provided data matrix.

Standardization algorithm constructor.

List of Public Methods

get_standardized_data_matrix

Standardize provided data matrix.

Methods

__init__()[source]

Standardization algorithm constructor.

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)