Description Usage Arguments Value
View source: R/calcPerfCompound.R
Calculate compound performance metrics (e.g. roc)
1 2 3 4 5 6 | calcPerfCompound(
confusion,
compound.metric,
avg.method = NULL,
metric.names.as.x.y = F
)
|
confusion |
A matrix or data frame with each row being a confusion matrix. The output of confusionMatrix(probs.predicted, logicals.expected, cutoff = 'all') |
compound.metric |
The name of the compound metric |
avg.method |
How to average performance metrics in multiclass classification. Can be NULL, 'weighted' or 'macro' |
metric.names.as.x.y |
If TRUE, will convert colnames: 'tpr' and 'ppv', to: 'x' and 'y' |
A matrix of the two performance metrics that the compound metric is composed of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.