BSkyConfusionMatrix | R Documentation |
Creates a confusion matrix by cross-tabulating the observed and predicted classes with associated statistics.
BSkyConfusionMatrix(
modelname,
showConfusionMatrix = FALSE,
predictions,
datasetname
)
modelname |
a model object for which confusion matrix is desired. |
predictions |
an object that is returned as a result of predict() call. |
datasetname |
is the current datasetname using which we want to make predictions. |
showCofusionMatrix |
logical, if TRUE the confusion matrix is generated (if it applies), if FALSE, confusion matrix is not generated. |
Displays the confusion matrix using the function confusionMatrix in the package caret
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.