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

This commit is contained in:
2024-10-15 15:53:50 +08:00
parent 6f88621b11
commit e0a0ca64f1
+1 -1
View File
@@ -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 算法对输入样本进行分类。