mirror of
https://github.com/newnius/YAO-optimizer.git
synced 2025-12-15 17:06:44 +00:00
add files
This commit is contained in:
1
serve.py
1
serve.py
@@ -194,6 +194,7 @@ class MyHandler(BaseHTTPRequestHandler):
|
|||||||
test_X, test_Y = np.array([[job, gpu_model, time],[1,1,1]]) #data_gainer.get_test_data(return_label_data=True)
|
test_X, test_Y = np.array([[job, gpu_model, time],[1,1,1]]) #data_gainer.get_test_data(return_label_data=True)
|
||||||
print(test_X, test_Y)
|
print(test_X, test_Y)
|
||||||
pred_result = predict(config, test_X)
|
pred_result = predict(config, test_X)
|
||||||
|
print(pred_result)
|
||||||
draw(config, data_gainer, pred_result)
|
draw(config, data_gainer, pred_result)
|
||||||
msg = {'code': 1, 'error': "container not exist"}
|
msg = {'code': 1, 'error': "container not exist"}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user