From 96d237cdf724dcbe4f513046aca561cfac380498 Mon Sep 17 00:00:00 2001 From: dong <2938690875@qq.com> Date: Thu, 17 Oct 2024 15:59: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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/function.py b/function.py index 8652c9e..4d1db39 100644 --- a/function.py +++ b/function.py @@ -42,7 +42,7 @@ name = "董秋" # 这里写自己的代码实现 import operator -def classify0(inX, dataSet, labels, k=2): +def classify0(inX, dataSet, labels, k=3): """ KNN 分类算法。