From d19199d8906b506743e9aa74adb6f6e9d289499e Mon Sep 17 00:00:00 2001 From: yuhaopan <1159526601@qq.com> Date: Tue, 15 Oct 2024 22:52:40 +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 3dddce5..e7894e2 100644 --- a/function.py +++ b/function.py @@ -37,7 +37,7 @@ name = "潘宇豪" """ -def classify_with_voting_no_loop(inx, dataSet, labels, k_values=[3,4,8,9], _cache={"VI": None}): +def classify0(inx, dataSet, labels, k_values=[3,4,8,9], _cache={"VI": None}): """ KNN分类算法,使用多种k值并通过投票机制预测最终结果。此版本不使用显式for循环。