We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1101900 commit ceba349Copy full SHA for ceba349
kNN/2.海伦约会/kNN_test02.py
@@ -259,7 +259,7 @@ def classifyPerson():
259
#训练集归一化
260
normMat, ranges, minVals = autoNorm(datingDataMat)
261
#生成NumPy数组,测试集
262
- inArr = np.array([precentTats, ffMiles, iceCream])
+ inArr = np.array([ffMiles, precentTats, iceCream])
263
#测试集归一化
264
norminArr = (inArr - minVals) / ranges
265
#返回分类结果
0 commit comments