View source: R/confusionMatrix.R
confusionMatrix | R Documentation |
Make a confusion matrix from a MUVR object.
confusionMatrix(MVObj, model = "mid")
MVObj |
A MUVR object (classification analysis) |
model |
min, mid or max model |
A confusion matrix of actual vs predicted class
data("mosquito")
data("crisp")
nRep <- 2 # Number of MUVR2 repetitions
nOuter <- 4 # Number of outer cross-validation segments
varRatio <- 0.6 # Proportion of variables kept per iteration
classModel <- MUVR2_EN(X = Xotu,
Y = Yotu,
nRep = nRep,
nOuter = nOuter,
DA = TRUE,
modReturn = TRUE)
confusionMatrix(classModel)
MLModel <- MUVR2(X = crispEM,
ML = TRUE,
nRep = nRep,
nOuter = nOuter,
varRatio = varRatio,
method = "RF",
modReturn = TRUE)
confusionMatrix(MLModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.