From f17a18e183e50e2a64690a5f304b8679e56c2900 Mon Sep 17 00:00:00 2001 From: wzy <675163717@qq.com> Date: Thu, 31 Oct 2024 15:17:46 +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 3759c1a..b2d1e2b 100644 --- a/function.py +++ b/function.py @@ -129,7 +129,7 @@ def load_data(filepath): row[22] = 0 # 移除不需要的特征 - # 假设特征从0开始编号,那么我们需要移除特征3(索引为2)和特征24~28 + # 假设特征从0开始编号,那么我们需要移除特征3和特征24~28 data = [row[:2] + row[3:23] + row[28:] for row in data] # 分离特征和标签