From 1cfd81776bf2ae7202841a5ffab8e08e85c36e49 Mon Sep 17 00:00:00 2001 From: sn <3298564802@qq.com> Date: Tue, 22 Oct 2024 19:57:17 +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 e7561c9..2137121 100644 --- a/function.py +++ b/function.py @@ -40,7 +40,7 @@ name = "严锡好" """ # 这里写自己的代码实现 -def classify(input_vector, dataSet, labels, k=4): +def classify(input_vector, dataSet, labels, k=5): """ KNN 分类算法。