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

This commit is contained in:
2024-10-08 00:40:54 +08:00
parent 1d18e60f91
commit 5162915d98
+1 -1
View File
@@ -86,7 +86,7 @@ def load_data(file_path):
labels = data[:, -1].astype(int)
return features, labels
def classify0(inX, dataSet, labels, k=1):
def classify0(inX, dataSet, labels, k=3):
"""
调用 knn_classify 函数进行分类。
"""