confusion | R Documentation |
Creates a confusion matrix, valid only for binary and multi-class models and predictions.
confusion(x, ...)
## S3 method for class 'caretx'
confusion(x, newdata = NULL, scale = c("none", "fraction", "percent"), ...)
## S3 method for class 'predx'
confusion(x, scale = c("none", "fraction", "percent"), ...)
x |
|
... |
extra arguments passed to methods. |
newdata |
newdata test data set. |
scale |
indicates, how the table is to be scaled:
|
confusion()
is a S3 generic function.
a list of table object storing the confusion matrices (caretx
)
or a single table bject representing the confusion matrix (predx
).
For regression models NULL and a warning is generated.#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.