generated from LufsX/Experiment-kNN
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ from collections import Counter
|
||||
|
||||
|
||||
# 这里写自己的代码实现
|
||||
def classify(input_vector, dataSet, labels, k=3):
|
||||
def classify(input_vector, dataSet, labels, k=1):
|
||||
"""
|
||||
使用 KNN 算法对输入样本进行分类。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user