From 320a98686b5fee21d54aa238f52898424539976b Mon Sep 17 00:00:00 2001 From: wujunjie <297081150@qq.com> Date: Fri, 11 Oct 2024 11:17:02 +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 6312f56..3c883b9 100644 --- a/function.py +++ b/function.py @@ -39,7 +39,7 @@ name = "吴俊煯" # 这里写自己的代码实现 -def classify0(inX, dataSet, labels, k=50, cov_inv=None): +def classify0(inX, dataSet, labels, k=20, cov_inv=None): """ KNN 分类算法,使用马氏距离。