📜  sklearn 备忘单 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:29.909000             🧑  作者: Mango

代码示例1
>>> from sklearn.preprocessing import StandardScaler
>>> scaler = StandardScaler().fit(X_train)
>>> standardized_X = scaler.transform(X_train)
>>> standardized_X_test = scaler.transform(X_test)