Skip to content

Commit

Permalink
Merge pull request #321 from SchlossLab/iss-262_roc
Browse files Browse the repository at this point in the history
Plot ROC & PRC curves
  • Loading branch information
courtneyarmour committed Jan 13, 2023
2 parents e8ee491 + c8015a9 commit f5c6119
Show file tree
Hide file tree
Showing 123 changed files with 2,414 additions and 495 deletions.
6 changes: 6 additions & 0 deletions NAMESPACE
Expand Up @@ -4,6 +4,10 @@ export("!!")
export("%>%")
export(":=")
export(.data)
export(calc_baseline_precision)
export(calc_mean_prc)
export(calc_mean_roc)
export(calc_model_sensspec)
export(calc_perf_metrics)
export(combine_hp_performance)
export(compare_models)
Expand All @@ -22,6 +26,8 @@ export(get_tuning_grid)
export(group_correlated_features)
export(permute_p_value)
export(plot_hp_performance)
export(plot_mean_prc)
export(plot_mean_roc)
export(plot_model_performance)
export(preprocess_data)
export(randomize_feature_order)
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
@@ -1,8 +1,12 @@
# mikropml development version

- Created an example showing how to plot feature importances in the `parallel` vignette (#310, @kelly-sovacool).
- New example showing how to plot feature importances in the `parallel` vignette (#310, @kelly-sovacool).
- You can now use `parRF`, a parallel implementation of the `rf` method, with
the same default hyperparameters as `rf` set automatically (#306, @kelly-sovacool).
- New functions to calculate and plot ROC and PRC curves: (#321, @kelly-sovacool)
- `calc_model_sensspec()` - calculate sensitivity, specificity, and precision for a model.
- `calc_mean_roc()` & `plot_mean_roc()` - calculate & plot specificity and mean sensitivity for multiple models.
- `calc_mean_prc()` & `plot_mean_prc()` - calculate & plot recall and mean precision for multiple models.

# mikropml 1.4.0

Expand Down
5 changes: 5 additions & 0 deletions R/data.R
Expand Up @@ -20,6 +20,11 @@
#' All other columns are OTU relative abundances.
"otu_mini_bin"

#' Mini OTU abundance dataset - preprocessed
#'
#' This is the result of running `preprocess_data("otu_mini_bin")`
"otu_data_preproc"

#' Mini OTU abundance dataset with 3 categorical variables
#'
#' A dataset containing relatives abundances of OTUs for human stool samples
Expand Down

0 comments on commit f5c6119

Please sign in to comment.