python sklearn.preprocessing.standardScaler 的transform和fit_transform方法

引用文章: 有关StandardScaler的transform和fit_transform方法
https://www.jianshu.com/p/2a635d9e894d

fit_tranform简单来说就是将数据归一化后返回转换后的数据

fit_transform:

Signature: StandardScaler.fit_transform(self, X, y=None, **fit_params)
Docstring:
Fit to data, then transform it.

Fits transformer to X and y with optional parameters fit_params
and returns a transformed version of X.

Parameters
----------
X : numpy array of shape [n_samples, n_features]
    Training set.

y : numpy array of shape [n_samples]
    Target values.

Returns
-------
X_new : numpy array of shape [n_samples, n_features_new]
    Transformed array.
File:      c:\users\huawei\appdata\local\programs\python\python36\lib\site-packages\sklearn\base.py
Type:      function

你可能感兴趣的:(深入浅出,python机器学习)