不合并死亡
Gitea Actions Test / Challenge-Actions (push) Successful in 31s

This commit is contained in:
2024-11-13 17:26:14 +08:00
parent 8aa87599fd
commit 95ee0ec0e1
-3
View File
@@ -89,9 +89,6 @@ def load_data(filepath):
# 删除无用特征
data = np.delete(data, [2] + list(range(22, 28)), axis=1)
# 合并死亡
labels = np.where((labels == 2) | (labels == 3), 0, labels)
# 数据标准化
scaler = StandardScaler()
data = scaler.fit_transform(data)