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

This commit is contained in:
cy
2024-10-26 17:39:23 +08:00
parent 0a341ee5fb
commit 1185899960
+3
View File
@@ -95,6 +95,9 @@ def load_data(filepath):
# 去掉特征3和特征24~28
data = np.delete(data, [2] + list(range(23, 28)), axis=1) # 特征3的索引是2,特征24-28的索引是23-27
scaler = StandardScaler()
data = scaler.fit_transform(data)
return data, target_variable
if __name__ == "__main__":