From 3d31271936e3e32ea23ad88722fe09223988cae6 Mon Sep 17 00:00:00 2001 From: Ultraman <2900311815@qq.com> Date: Tue, 22 Oct 2024 19:44:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20function.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/function.py b/function.py index ebcf651..9d78cda 100644 --- a/function.py +++ b/function.py @@ -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 分类算法。