From 7b334bcc288ad151a73b6f3d7efe7df5ec216563 Mon Sep 17 00:00:00 2001 From: LiYufeng <2371258046@qq.com> Date: Wed, 23 Oct 2024 19:08:48 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index 1937345..dba30a5 100644 --- a/function.py +++ b/function.py @@ -41,7 +41,7 @@ name = "李煜锋" # 这里写自己的代码实现 -def classify(input_vector, dataSet, labels, k=3): +def classify(input_vector, dataSet, labels, k=2): """ KNN 分类算法。