generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ def load_data(filepath):
|
|||||||
data = []
|
data = []
|
||||||
with open(filepath, 'r') as file:
|
with open(filepath, 'r') as file:
|
||||||
for line in file:
|
for line in file:
|
||||||
line_data line.strip().split()
|
line_data = line.strip().split()
|
||||||
if line_data:
|
if line_data:
|
||||||
try:
|
try:
|
||||||
data. append([float(x) if x !='?'else np. nan for x in line_data])
|
data. append([float(x) if x !='?'else np. nan for x in line_data])
|
||||||
|
|||||||
Reference in New Issue
Block a user