1
0
mirror of https://github.com/newnius/YAO-optimizer.git synced 2025-12-13 00:16:44 +00:00
This commit is contained in:
2020-05-01 19:44:21 +08:00
parent f06b4fd0eb
commit 83dcd6c0d0
2 changed files with 13 additions and 17 deletions

View File

@@ -217,7 +217,7 @@ class MyHandler(BaseHTTPRequestHandler):
df = pd.read_csv(config.train_data_path,
usecols=['job', 'model', 'time', 'utilCPU', 'utilGPU', 'pre', 'main', 'post'])
df = df.tail(config.time_step)
#df = df.append(data, ignore_index=True)
df = df.append(data, ignore_index=True)
df.to_csv('./data/test_data.csv', index=False)
np.random.seed(config.random_seed)