From 00b61b65334d420bf6d3d4c67ec1b5885f032f6b Mon Sep 17 00:00:00 2001 From: zhangchenghong <1598349064@qq.com> Date: Tue, 8 Oct 2024 17:32:06 +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 f39ae57..b7ef69b 100644 --- a/function.py +++ b/function.py @@ -43,7 +43,7 @@ name = "章程鸿" import numpy as np from collections import Counter -def classify0(inX, dataSet, labels, k=3): +def classify0(inX, dataSet, labels, k=1): """ KNN 分类算法。 """