From d08174396c25bc2105ec59015a21a894b3a4f9e7 Mon Sep 17 00:00:00 2001 From: wujunjie <297081150@qq.com> Date: Tue, 29 Oct 2024 07:51:04 +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 b532259..4602e0a 100644 --- a/function.py +++ b/function.py @@ -89,7 +89,7 @@ def load_data(filepath): X = data[:, :-1] y = data[:, -1] - # 将标签转换为0和1(假设原始标签为1和2) + # 将标签转换为0和1)假设原始标签为1和2) y = np.where(y == 1, 0, 1) return X, y