Skip to content

Commit ceba349

Browse files
committed
海伦约会,bug修复
1 parent 1101900 commit ceba349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kNN/2.海伦约会/kNN_test02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def classifyPerson():
259259
#训练集归一化
260260
normMat, ranges, minVals = autoNorm(datingDataMat)
261261
#生成NumPy数组,测试集
262-
inArr = np.array([precentTats, ffMiles, iceCream])
262+
inArr = np.array([ffMiles, precentTats, iceCream])
263263
#测试集归一化
264264
norminArr = (inArr - minVals) / ranges
265265
#返回分类结果

0 commit comments

Comments
 (0)