import numpy as np import matplotlib.pyplot as plt import seaborn as sns 归一化 一般泛指把数据压缩到0到1之间的浮点数。 data = np.random.randint(10,100,size=(100,2)) target = [0]*50 + [1]*50 plt.scatter(data[:,0],data[:,1],c=target) class MinMax(object): #构造函数 def __init__(self,feature_range=(0,1)): ...