(
r'E:\Python 机器学习\csv\datingTestSet.txt',
sep='\t',
header=None,
names=['flight', 'icecream...(
r'E:\Python 机器学习\csv\datingTestSet.txt',
sep='\t',
header=None,
names=['flight', 'icecream...(
r'E:\Python 机器学习\csv\datingTestSet.txt',
sep='\t',
header=None,
names=['flight', 'icecream...(
r'E:\Python 机器学习\csv\datingTestSet.txt',
sep='\t',
header=None,
names=['flight', 'icecream...满足正态分布即标准差为1,平均值为0的数组)
# 处理公式为 X=(x-x̅)/α
scaler = StandardScaler()
x_train
网格搜索
# 使用K近邻算法
knn = KNeighborsClassifier