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

This commit is contained in:
2024-11-13 18:57:39 +08:00
parent d966a82f9d
commit 7bb54bb5fa
+1 -1
View File
@@ -93,7 +93,7 @@ def load_data(filepath):
# 检查特征数量 # 检查特征数量
num_features = data.shape[1] num_features = data.shape[1]
# 特征选择:去掉特征3(索引2)和特征24~28(索引23~26),确保索引有效 # 特征选择:去掉特征3(索引2)和特征24~28(索引23~26),可以确保索引有效
indices_to_delete = [2] # 特征3 indices_to_delete = [2] # 特征3
if num_features > 24: # 确保特征数量足够 if num_features > 24: # 确保特征数量足够
indices_to_delete += list(range(24, 27)) # 特征24到27(索引23到26) indices_to_delete += list(range(24, 27)) # 特征24到27(索引23到26)