归一化和标准化代码实现

# 归一化
from sklearn.preprocessing import MinMaxScaler
mm = MinMaxScaler(feature_range=(0,1))
data = [[90,2,10,40],[60,5,15,45],[73,3,13,45]]
data = mm.fit_transform(data)
print(data)

# 标准化
from sklearn.preprocessing import StandardScaler
sta = StandardScaler()
data = [[90,2,10,40],[60,5,15,45],[73,3,13,45]]
data = sta.fit_transform(data)
print(data)

 

归一化和标准化代码实现

上一篇:ES6的一些新特性


下一篇:mavros offboard_node控制飞机