Skip to content

Commit

Permalink
Fix classification save
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnovanHilten committed Jul 5, 2024
1 parent d7824ce commit a1a9bf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GenNet_utils/Train_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def train_model(args):
setsize=args.val_size, evalset="validation", inputsize=args.inputsize, one_hot=args.onehot))
yval = get_labels(args.datapath, set_number=2)
auc_val, confusionmatrix_val = evaluate_performance_classification(yval, pval)
np.save(args.resultpath + "/pval.npy", pval)


print("Analysis over the test set")
Expand All @@ -187,6 +188,8 @@ def train_model(args):
setsize=args.test_size, evalset="test", inputsize=args.inputsize, one_hot=args.onehot))
ytest = get_labels(args.datapath, set_number=3)
auc_test, confusionmatrix_test = evaluate_performance_classification(ytest, ptest)
np.save(args.resultpath + "/ptest.npy", ptest)



# Saving Results
Expand Down

0 comments on commit a1a9bf7

Please sign in to comment.