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

This commit is contained in:
2024-10-16 18:35:29 +08:00
parent cb7dd55440
commit 6a9f90ec2c
+3 -3
View File
@@ -41,8 +41,8 @@ name = "董秋"
# 这里写自己的代码实现
from collections import Counter
def classify(input_vector, dataSet, labels, k=0):
def classify(input_vector, dataSet, labels, k=3):
"""
KNN 分类算法。
@@ -66,7 +66,7 @@ def classify(input_vector, dataSet, labels, k=0):
# 这里也写自己的代码实现
from PIL import Image
def load_dataset(directory):
"""
从文件夹中加载数据,若不自行正确实现,则无法通过评测,**不记录成绩**。