View source: R/calc_performance.R
calc_performance | R Documentation |
This function is used to calculate several distinct BINARY classification
performance indicators. NA
values are not considered in the calculations.
calc_performance(
truth,
pred,
prob = NULL,
posValue = 1,
negValue = -1,
ret.as.list = FALSE
)
truth |
vector of reference values |
pred |
vector of predicted values |
prob |
optional, vector of predicted probabilities |
posValue |
value that indicates the "positive" class. |
negValue |
value that indicates the "negative" class. |
ret.as.list |
optional, should the result be returned as a list (if
TRUE the routine also returns the |
list containing several performance indicators
Felipe Campelo (f.campelo@aston.ac.uk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.