generated from LufsX/Experiment-LogReg
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ def load_data(filepath):
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
line = line.strip().split()
|
||||
if len(line) >= 1 and line[-1].isdigit():
|
||||
if '?' not in line:
|
||||
line_data = [1] + [0 if x == '?' else float(x) for x in [line[i] for i in range(len(line) - 1) if i not in [2, 23, 24, 25, 26, 27]]]
|
||||
target = int(line[22])
|
||||
if target in [2, 3]:
|
||||
|
||||
Reference in New Issue
Block a user