Description Usage Arguments Value See Also Examples
Filters out the Subcascades object for the given sizes.
1 | dropSize(subcascades = NULL, size = NA)
|
subcascades |
A Subcascades object as it is returned by |
size |
A numeric value that defines the size of the cascades that should be returned. The smallest size is 2 and the largest the maximal number of classes of the current dataset. |
A Subcascades object as in subcascades
, that does not include cascades of the specific lengths that hve been filtered.
keepSize
, dropSets
, keepSets
, dropThreshold
, keepThreshold
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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')
# generate Subcascades object
subc = subcascades(predMap,thresh=0.7)
# filters out cascades that have a length of 3
dropSize(subc,size=3)
# filters out cascades that have a length of 3 or 4
dropSize(subc, size=c(3,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.