from sklearn.preprocessing import StandardScaler
X = [
[1,2,3,2],
[7,8,9,2.01],
[4,8,2,2.01],
[9,5,2,1.99],
[7,5,3,1.99],
[1,4,5,9]
]
ss = StandardScaler(with_mean=True,with_std=True)
ss.fit(X)
print(ss.mean_)
print(ss.n_samples_seen_)
print(ss.scale_)
sklearn实现标准化
最新推荐文章于 2024-02-04 17:52:43 发布