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

This commit is contained in:
wzy
2024-10-31 15:17:46 +08:00
parent 7526aee0c1
commit f17a18e183
+1 -1
View File
@@ -129,7 +129,7 @@ def load_data(filepath):
row[22] = 0
# 移除不需要的特征
# 假设特征从0开始编号,那么我们需要移除特征3(索引为2)和特征24~28
# 假设特征从0开始编号,那么我们需要移除特征3和特征24~28
data = [row[:2] + row[3:23] + row[28:] for row in data]
# 分离特征和标签