Commit 474d9b4f by Pamela Osuna

pr and cm

parent 6e466317
......@@ -44,9 +44,11 @@ for params in combinations:
#note: the test data remains unbalanced
acc, auc, cm = cnn.run_kfold(X_train_opt, X_test_kfold_opt, y_train_kfold_opt, y_test_kfold_opt, max_params)
#to add: precision recall curve
labels = ['~robust&~evolvable', 'evolvable&~robust', 'robust&~evolvable', 'robust&evolvable']
plot_confusion_matrix(cm, labels)
plot_confusion_matrix(cm, labels) #this function saves the matrix image automatically
f = open("acc_auc.txt", 'w+')
f.write("Average accuracy: " + str(acc)+"\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment