1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-16 09:26:45 +00:00
This commit is contained in:
2020-07-01 17:00:00 +08:00
parent 4fcc033267
commit fd7ac13ce0
2 changed files with 24 additions and 23 deletions

View File

@@ -79,8 +79,6 @@ def predict(job, features):
values.append(features[feature])
datafile = './data/' + job + '.' + str(random.randint(1000, 9999)) + '.csv'
if not os.path.exists(datafile):
return -1, False
t = ['job']
t.extend(models[job]['features'])
with open(datafile, 'w', newline='') as csvfile: