Description Usage Arguments Value Examples
Calculate classifier performance metrics (multi-class)
1 | calcPerfMC(confusion, metrics, avg.method = NULL, melt = F)
|
confusion |
A matrix, data frame; or a list of matrices or data frames. These should contain a confusion matrix for one cutoff or confusion matrices for multiple cutoffs. |
metrics |
A character vector of the desired statistics. Multiple metrics can be specified; however, usually only two are used for binary classification statistics plots. |
avg.method |
'macro': Simple average. Performance metrics are calculated individually for each class, and then averaged. 'weighted': Weighted average. Similar to 'macro', except that the performance metrics for each class are weighted by the relative contribution of each class (i.e. classes with more samples have more weighting) |
melt |
If melt = FALSE, output in wide format. If melt = TRUE, output in long format |
A numeric vector or matrix of the selected performance metrics
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.