更新 function.py
Gitea Actions Test / Challenge-Actions (push) Successful in 23s

This commit is contained in:
2024-11-21 17:21:52 +08:00
parent eb6c2cb8e2
commit 6aca57876b
+1 -1
View File
@@ -108,7 +108,7 @@ def load_data(filepath):
y = np.where(y == '0', 0, y) # 假设 '0' 表示存活 y = np.where(y == '0', 0, y) # 假设 '0' 表示存活
# 确保 y 是整数类型 # 确保 y 是整数类型
y = y.astype(int) y = y.astype(int) # 将 y 转换为整数类型
return X, y return X, y