evaluate_prediction_auc: Calculate area under the curve for ROC and PR curves.

Description Usage Arguments Value Examples

View source: R/evaluate_prediction_auc.R

Description

Calculate area under the curve for ROC and PR curves.

Usage

1
2
evaluate_prediction_auc(predicted_values, true_values, min_resolution = 1000,
  plot = T, fdr_threshold = 0.05)

Arguments

predicted_values

Vector of continuous-valued prediction scores. Assumes that positive prediction scores correspond to 1 outcome in the true values.

true_values

Vector of logical or binary values of ground truth

Value

A data.frame of containing the AUROC, AUPRC, and F1 measure

Examples

1
2
3
true_values <- sample(0:1, 1000, replace=T)
predicted_values <- rnorm(1000)
evaluate_prediction_auc(predicted_values, true_values)

cancerdatasci/ceres documentation built on May 20, 2019, 6:44 p.m.