pred_LB | R Documentation |
Predicts the binary matrix and calculates the optimal thresholds per variable that minimize the Balanced Accuracy (BACC)
pred_LB(object, x, ncuts = 100)
object |
BiplotML object |
x |
Binary matrix. |
ncuts |
Number of equidistant cuts between 0 and 1 that will be evaluated. By default |
The threshold for each variable is lowered to minimize the Balanced Accuracy (BACC).
BACC = \frac{1}{2} (\frac{TP}{TP+FN} + \frac{TN}{TN+FP}),
where TP
is the number of true positives, TN
is the number of true negatives, FP
is the number of false positives and FN
is the number of false negatives
This function returns the thresholds per variable, the predicted matrix, the confusion matrix and the BACC.
data("Methylation") LB <- LogBip(Methylation, plot = FALSE) out <- pred_LB(LB, Methylation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.