Description Usage Arguments Value Author(s) See Also
produce the confusion matrix using function confusionMatrix
from package caret if classify=TRUE
, otherwise calculate the RMSE between the predicted and groundtruth values.
1 2 | predSummary(reference, prediction,
lev = NULL, classify = TRUE)
|
reference |
groundtruth values. |
prediction |
predicted values. |
lev |
a vector of character, specifying the group names. Ignored if |
classify |
a boolean value, telling whether a classification or regression task. |
If classify=TRUE
, a list, the output from confusionMatrix
Otherwise a numeric value, giving the RMSE of the prediction.
Shuxia Guo, Thomas Bocklitz, Juergen Popp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.