Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot roc and precision recall curves #43 #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

apoman38
Copy link
Collaborator

@apoman38 apoman38 commented Mar 17, 2021

What this PR does:
3 new functions were added in the train.py file.

  1. rep_roc_pr_curves(). Prepare data for plotting roc and precision-recall curves. Specifically, in the function, folders are created where the plots will be stored, and one hot encoding is performed on the labeled data.
  2. plot_roc_curve(). Plot roc curves.
  3. plot_pre_rec_curve(). Plot precision-recall curves.

How to QA:
Run the train.py file (python3 train.py -v dataset/Aerial dataset/Tilt SVM) and make sure that created two new folders where the plots are saved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant