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) # 分离特征标签