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 & PRC curves #321
Conversation
Adapted from https://github.com/SchlossLab/2021-08-09_ROCcurves Co-authored-by: Courtney Armour <courtneyarmour@users.noreply.github.com>
the curves appear to be flipped...
previously the predictions weren't getting arranged in descending order
Also improve the docs
- use pkg::fcn() syntax - declare data variables with null to silence warning about global vars - fixed examples
Codecov ReportBase: 98.01% // Head: 98.18% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #321 +/- ##
==========================================
+ Coverage 98.01% 98.18% +0.17%
==========================================
Files 13 13
Lines 1007 1103 +96
==========================================
+ Hits 987 1083 +96
Misses 20 20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Tried to include results list & mtx as package data, but it's too big for CRAN. Using them as test fixtures works when using system.file() to access them in the vignette.
…into iss-262_roc
…into iss-262_roc
works from the CLI!
…into iss-262_roc
This code heavily borrows from @courtneyarmour's code club on ROC curves, so I made her a co-author on the initial commit 8982fb7.
Issues
Change(s) made
calc_model_sensspec()
- calculate sensitivity, specificity, precision for a modelcalc_mean_roc()
&plot_mean_roc()
- calculate & plot specificity and mean sensitivity for multiple modelscalc_mean_prc()
&plot_mean_prc()
- calculate & plot recall and mean precision for multiple modelscalc_mean_perf()
- used by calc_mean_roc() and calc_mean_prc()shared_ggprotos()
- used by plot_mean_roc() and plot_mean_prc()vignette('parallel')
to show how to plot ROC and PRC curves.Checklist
(
Strikethroughany points that are not applicable.)NEWS.md
if this includes any user-facing changes.