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

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