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

This commit is contained in:
2024-11-02 14:57:15 +08:00
parent 4e3df65082
commit f15eed142e
+4
View File
@@ -131,6 +131,10 @@ def load_data(filepath):
data = np.array(data)
labels = np.array(labels)
# 归一化处理
scaler = StandardScaler()
data = scaler.fit_transform(data)
return data, labels
if __name__ == "__main__":