generated from LufsX/Challenge-kNN
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ name = "潘宇豪"
|
||||
"""
|
||||
|
||||
|
||||
def classify0(inx, dataSet, labels, k_values=[3,4,8,9], _cache={"VI": None}):
|
||||
def classify0(inx, dataSet, labels, k_values=[4,8,9], _cache={"VI": None}):
|
||||
"""
|
||||
KNN分类算法,使用多种k值并通过投票机制预测最终结果。此版本不使用显式for循环。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user