Description Usage Arguments Details Value References See Also Examples
View source: R/confusion_matrix.R
Given a vector of predictions and target values, calculate numerous statistics of interest.
1 2 3 4 5 6 7 8 9 10 |
prediction |
A vector of predictions |
target |
A vector of target values |
positive |
The positive class for a 2-class setting. Default is
|
prevalence |
Prevalence rate. Default is |
return_table |
Logical. Whether to return the table of |
dnn |
The row and column headers for the table returned by
|
longer |
Transpose the output to long form. Default is FALSE (requires
|
... |
Other parameters, not currently used. |
This returns accuracy, agreement, and other statistics. See the
functions below to find out more. Originally inspired by the
confusionMatrix
function from the caret
package.
A list of tibble(s) with the associated statistics and possibly the frequency table as list column of the first element.
Kuhn, M., & Johnson, K. (2013). Applied predictive modeling.
confusionMatrix
calc_accuracy
calc_agreement
calc_stats
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.