From aed2767f3352502f3c6b1397c8b976090ac6f053 Mon Sep 17 00:00:00 2001 From: hao <19382120447@163.com> Date: Sat, 2 Nov 2024 13:41:17 +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 f145fdc..0e2d936 100644 --- a/function.py +++ b/function.py @@ -65,7 +65,7 @@ def load_data(filepath): - np.array: 特征数据。 - np.array: 标签数据。 """ - # 使用 np.genfromtxt 加载数据,处理缺失值 '?' 为 0 + # 使用 np.genfromtxt 加载数据并处理缺失值 '?' 为 0 data = np.genfromtxt(filepath, delimiter=" ", missing_values="?", filling_values=-1) # 分离特征标签