sklearn.utils.sparsefuncs.inplace_csr_column_scale
-
sklearn.utils.sparsefuncs.inplace_csr_column_scale(X, scale)
[source] -
Inplace column scaling of a CSR matrix.
Scale each feature of the data matrix by multiplying with specific scale provided by the caller assuming a (n_samples, n_features) shape.
- Parameters
-
-
Xsparse matrix of shape (n_samples, n_features)
-
Matrix to normalize using the variance of the features. It should be of CSR format.
-
scalendarray of shape (n_features,), dtype={np.float32, np.float64}
-
Array of precomputed feature-wise values to use for scaling.
-
© 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
https://scikit-learn.org/0.24/modules/generated/sklearn.utils.sparsefuncs.inplace_csr_column_scale.html