From 39b260a7f652a00ed8fc2c1235ed1bad54fb4799 Mon Sep 17 00:00:00 2001 From: meixiaodong <3081674342@qq.com> Date: Tue, 22 Oct 2024 11:23:13 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/function.py b/function.py index 4e59d37..a6820de 100644 --- a/function.py +++ b/function.py @@ -41,6 +41,7 @@ name = "梅晓东" # 这里写自己的代码实现 +import operator def classify0(inX, dataSet, labels, k=0): """ KNN 分类算法。