Package: precrec 0.14.4

Takaya Saito

precrec: Calculate Accurate Precision-Recall and ROC (Receiver Operator Characteristics) Curves

Accurate calculations and visualization of precision-recall and ROC (Receiver Operator Characteristics) curves. Saito and Rehmsmeier (2015) <doi:10.1371/journal.pone.0118432>.

Authors:Takaya Saito [aut, cre], Marc Rehmsmeier [aut]

precrec_0.14.4.tar.gz
precrec_0.14.4.zip(r-4.5)precrec_0.14.4.zip(r-4.4)precrec_0.14.4.zip(r-4.3)
precrec_0.14.4.tgz(r-4.4-x86_64)precrec_0.14.4.tgz(r-4.4-arm64)precrec_0.14.4.tgz(r-4.3-x86_64)precrec_0.14.4.tgz(r-4.3-arm64)
precrec_0.14.4.tar.gz(r-4.5-noble)precrec_0.14.4.tar.gz(r-4.4-noble)
precrec_0.14.4.tgz(r-4.4-emscripten)precrec_0.14.4.tgz(r-4.3-emscripten)
precrec.pdf |precrec.html
precrec/json (API)
NEWS

# Install 'precrec' in R:
install.packages('precrec', repos = c('https://evalclass.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/evalclass/precrec/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • B1000 - Balanced data with 1000 positives and 1000 negatives.
  • B500 - Balanced data with 500 positives and 500 negatives.
  • IB1000 - Imbalanced data with 1000 positives and 10000 negatives.
  • IB500 - Imbalanced data with 500 positives and 5000 negatives.
  • M2N50F5 - 5-fold cross validation sample.
  • P10N10 - A small example dataset with several tied scores.

On CRAN:

9.54 score 45 stars 5 packages 486 scripts 2.1k downloads 14 mentions 10 exports 32 dependencies

Last updated 1 years agofrom:6ac1fdc8a9. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 12 2024
R-4.5-win-x86_64OKNov 12 2024
R-4.5-linux-x86_64OKNov 12 2024
R-4.4-win-x86_64OKNov 12 2024
R-4.4-mac-x86_64OKNov 12 2024
R-4.4-mac-aarch64OKNov 12 2024
R-4.3-win-x86_64OKNov 12 2024
R-4.3-mac-x86_64OKNov 12 2024
R-4.3-mac-aarch64OKNov 12 2024

Exports:aucauc_cicreate_sim_samplesevalmodformat_nfoldjoin_labelsjoin_scoresmmdatapartpauc

Dependencies:assertthatclicolorspacedata.tablefansifarverggplot2gluegridExtragtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerRcpprlangscalestibbleutf8vctrsviridisLitewithr

Introduction to precrec

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Nov 12 2024.

Last update: 2023-03-11
Started: 2015-11-29

Readme and manuals

Help Manual

Help pageTopics
Convert a curves and points object to a data frameas.data.frame as.data.frame.aucroc as.data.frame.mmcurves as.data.frame.mmpoints as.data.frame.mscurves as.data.frame.mspoints as.data.frame.smcurves as.data.frame.smpoints as.data.frame.sscurves as.data.frame.sspoints
Retrieve a data frame of AUC scoresauc auc.aucs
Calculate CIs of ROC and precision-recall AUCsauc_ci auc_ci.aucs
Plot performance evaluation measures with ggplot2autoplot autoplot.mmcurves autoplot.mmpoints autoplot.mscurves autoplot.mspoints autoplot.smcurves autoplot.smpoints autoplot.sscurves autoplot.sspoints
Balanced data with 1000 positives and 1000 negatives.B1000
Balanced data with 500 positives and 500 negatives.B500
Create random samples for simulationscreate_sim_samples
Evaluate models and calculate performance evaluation measuresevalmod
Create n-fold cross validation dataset from data frameformat_nfold
Convert a curves and points object to a data frame for ggplot2fortify fortify.mmcurves fortify.mmpoints fortify.mscurves fortify.mspoints fortify.smcurves fortify.smpoints fortify.sscurves fortify.sspoints
Imbalanced data with 1000 positives and 10000 negatives.IB1000
Imbalanced data with 500 positives and 5000 negatives.IB500
Join observed labels of multiple test datasets into a listjoin_labels
Join scores of multiple models into a listjoin_scores
5-fold cross validation sample.M2N50F5
Reformat input data for performance evaluation calculationmmdata
A small example dataset with several tied scores.P10N10
Calculate partial AUCspart part.mmcurves part.mscurves part.smcurves part.sscurves
Retrieve a data frame of pAUC scorespauc pauc.aucs
Plot performance evaluation measuresplot plot.mmcurves plot.mmpoints plot.mscurves plot.mspoints plot.smcurves plot.smpoints plot.sscurves plot.sspoints
precrec: A package for computing accurate ROC and Precision-Recall curvesprecrec