更新 function.py
Gitea Actions Challenge Test / Challenge-Actions (push) Successful in 11s

This commit is contained in:
2024-10-15 23:49:57 +08:00
parent 8c546cbe07
commit c0a3cbd23f
+1 -1
View File
@@ -54,7 +54,7 @@ def normalize(dataSet):
return normDataSet, ranges, minVals
def classify0(inX, dataSet, labels, k):
def classify0(inX, dataSet, labels, k=20):
"""
KNN 分类算法。