# NOT RUN {
library(TunePareto)
data(esl)
data = esl$data
labels = esl$labels
foldList = generateCVRuns(labels = labels,
ntimes = 2,
nfold = 2,
leaveOneOut = FALSE,
stratified = TRUE)
predMap = predictionMap(data, labels, foldList = foldList,
classifier = tunePareto.svm(), kernel='linear')
# Calculation of the confusion matrix for '0>2>3>4'.
confusionTable = confusionTable(predMap, cascade = '0>2>3>4')
summary(confusionTable)
# }
Run the code above in your browser using DataLab