Description Usage Arguments Value Examples
mergeSubcascades
adds the cascades from subcascades2 to the subcascades1, that have not been part of subcascades1.
1 | mergeSubcascades(subcascades1 = NULL, subcascades2 = NULL)
|
subcascades1 |
A Subcascades object as it is returned by |
subcascades2 |
A Subcascades object like subcascades1 |
A Subcascades object comprising the evaluated cascades and their performances. The Subcascades object is made up of a list of matrices. Each matrix comprises the evaluation results of cascades of a specific length and is sorted row-wise according to the achieved minimal classwise sensitivities of the cascades (decreasing). The rownames show the class order by a character string of type '1>2>3' and the entries the sensitivity for each position of the cascade.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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')
# make two Subcascades objects
subc1 = subcascades(predMap, size = c(3,4), thresh = 0.6)
subc2 = subcascades(predMap, size = c(4), thresh = 0.5)
# add the cascades of subcascades2 to subcascades1
mergeSubcascades(subc1, subc2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.