Skip to content
Snippets Groups Projects
Commit b3a3c45a authored by Schneider Leo's avatar Schneider Leo
Browse files

model cuda loading

parent 44a88821
No related branches found
No related tags found
No related merge requests found
......@@ -89,13 +89,13 @@ def run(args):
plt.plot(train_acc)
plt.plot(train_acc)
plt.show()
plt.savefig('output/training_plot.png')
plt.savefig('output/training_plot_{}_.png'.format(args.output))
load_model(model, args.save_path)
make_prediction(model,data_test)
make_prediction(model,data_test, 'output/confusion_matrix_{}_.png'.format(args.output))
def make_prediction(model, data):
def make_prediction(model, data, f_name):
y_pred = []
y_true = []
......@@ -121,7 +121,7 @@ def make_prediction(model, data):
columns=[i for i in classes])
plt.figure(figsize=(12, 7))
sn.heatmap(df_cm, annot=True)
plt.savefig('confusion_matrix.png')
plt.savefig(f_name)
def save_model(model, path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment