generated from LufsX/Experiment-kNN
This commit is contained in:
@@ -2,6 +2,10 @@ import numpy as np
|
||||
import os
|
||||
import time
|
||||
|
||||
# 定义ID和姓名
|
||||
id = "202210423220"
|
||||
name = "方子涵"
|
||||
|
||||
def classify(input_vector, dataSet, labels, k=4):
|
||||
"""
|
||||
KNN 分类算法。
|
||||
|
||||
Reference in New Issue
Block a user