From 7a551446711c4b1f2c6f4621507264d043344f01 Mon Sep 17 00:00:00 2001 From: cy <939601402@qq.com> Date: Thu, 14 Nov 2024 16:39:05 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/function.py b/function.py index b119ab0..783cf28 100644 --- a/function.py +++ b/function.py @@ -87,9 +87,10 @@ def load_data(filepath): data = np.array(data) labels = np.array(labels) - target_variable = labels + data = np.delete(data, [2] + list(range(23, 28)), axis=1) - return data, target_variable + + return data, labels if __name__ == "__main__":