From 2a44931a2e453a65772e7d347228c0b74885f60b Mon Sep 17 00:00:00 2001 From: anye <513317375@qq.com> Date: Thu, 10 Oct 2024 16:19:21 +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 b4bb6d3..bedbf8e 100644 --- a/function.py +++ b/function.py @@ -6,7 +6,7 @@ qin id = "202210423206" name = "詹宇豪" -def classify0(inX, dataSet, labels, k=3): +def classify0(inX, dataSet, labels, k=1): """ KNN 分类算法。