Get's the balanced accuracy by choosing a probability threshold value where Specificity == Sensitivity at the resolution of the crit parameter.
1 | getBalancedAcc(prob, obs, posLabel, negLabel, crit = 1e-04, verbose = F)
|
prob |
predicted probability |
obs |
observed labels |
posLabel |
the positive label (e.g. YES) |
negLabel |
the negative label (e.g. NO) |
crit |
criical value resolution for the difference in sensitivity==specificity |
verbose |
boolean flag to print out the difference value |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.