Description Usage Arguments Value
View source: R/accuracy_fncs.R
Calcluates the trade-off between true positive rate (tpr) and false discovery rate (fdr), true negative rate (tnr), and overall accuracy for a set of threshold probabilities.
1 |
pred_vec |
A numeric vector of predicted probabilities |
labels |
A factor vector of class labels (must use |
threshholds |
a numeric of threshholds to test. |
a three column matrix with the true positive rate (tpr), false discovery, rate (fdr), and true negative rate (tnr) associated with each threshold value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.