performance_measures | R Documentation |
Function get_performance
calculates the best performance measure when
prediction
object is given.
get_performance(pred, measure)
get_max(pred, FUN)
AUC(pred)
tp(pred)
fp(pred)
fn(pred)
tn(pred)
cutoff(pred)
Se(pred)
Sp(pred)
J(pred)
Bac(pred)
Acc(pred)
Kappa(pred)
Wkappa(pred)
kappa_helper(pred, FUN_)
make_conf_matrix(TP, FN, FP, TN)
pred |
An object of class |
measure |
(
|
FUN |
Function to apply (one of
|
FUN_ |
Function to apply (either |
TP |
Number of true positives. |
FN |
Number of false negatives. |
FP |
Number of false positives. |
TN |
Number of true negatives. |
Function get_performance
returns a numeric vector with 2 elements:
the first element is the highest value of selected performance measure;
the second element is either corresponding cut-off value, or NA
if the measure is "auc"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.