1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-15 17:06:44 +00:00
This commit is contained in:
2020-05-02 18:33:34 +08:00
parent 57fdd67bda
commit 11b8cba6cc
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ def predict(job, seq):
'value': 0,
}
file = './data/' + job + '.' + random.randint(1000, 9999) + '.csv'
file = './data/' + job + '.' + str(random.randint(1000, 9999)) + '.csv'
df = pd.read_csv('./data/' + job + '.csv', usecols=['seq', 'value'])
df = df.tail(batch_size * 2 - 1)
df = df.append(data, ignore_index=True)