generated from LufsX/Challenge-kNN
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ name = "章程鸿"
|
||||
import numpy as np
|
||||
from collections import Counter
|
||||
|
||||
def classify0(inX, dataSet, labels, k=3):
|
||||
def classify0(inX, dataSet, labels, k=1):
|
||||
"""
|
||||
KNN 分类算法。
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user