sklearn
文章平均质量分 50
qaz57301
这个作者很懒,什么都没留下…
展开
-
python 中数组标准化函数StandardScaler
Python中StandardScalerfrom sklearn.preprocessing import StandardScalersc = StandardScaler()x = sc.fit_transform(x)一: 数组x标准化公式为数组,为数组x的平均值,为数组x的标准差,则标准化的公式为:import numpy as npfrom sklearn.preprocessing import StandardScalersc = StandardScaler().原创 2022-05-22 08:54:15 · 7073 阅读 · 0 评论 -
python归一化函数MinMaxScaler的理解
"""python归一化函数MinMaxScaler的理解class sklearn.preprocessing.MinMaxScaler(feature_range=0, 1, *, copy=True)"""from sklearn.preprocessing import MinMaxScalerimport numpy as npx = np.array([[1., -1., 2.], [2., 0., 0.], [0., 1.,.原创 2021-05-09 14:23:49 · 5565 阅读 · 0 评论