| confusionMatrix2 | R Documentation | 
This is a wrapper function for confusionMatrix,
but it accepts directly a caret model and a data.frame with test data.
confusionMatrix2(model, ...) ## S3 method for class 'train' confusionMatrix2(model, testdata = NULL, testy = NULL, ...)
model | 
 A model returned by   | 
... | 
 Further arguments to   | 
testdata | 
 A data.frame with test values to be evaluated.
If   | 
testy | 
 A factor of response variable of   | 
Using confusionMatrix2(model) (without test data) will produce simple training metrics, unlike
confusionMatrix(model), which is based on resampling procedure.
evaluate ROCcurve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.