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 14bd7c8 commit 2959a0eCopy full SHA for 2959a0e
knn/knn.py
@@ -69,6 +69,7 @@ def Predict(testset,trainset,train_labels):
69
if dist < max_dist:
70
knn_list[max_index] = (dist,label)
71
max_index = -1
72
+ max_dist = 0
73
74
75
# 统计选票
0 commit comments