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

This commit is contained in:
2024-11-03 14:57:00 +08:00
parent b3b4564bd3
commit 2d8ae9a430
+1 -1
View File
@@ -83,7 +83,7 @@ def load_data(filepath):
data = []
with open(filepath, 'r') as file:
for line in file:
line_data line.strip().split()
line_data = line.strip().split()
if line_data:
try:
data. append([float(x) if x !='?'else np. nan for x in line_data])