Description Usage Arguments Details Value See Also Examples
Converts from a Subcascades object to a Groupwise object.
1 | groupwise(subcascades = NULL, maxCl = 50)
|
subcascades |
A Subcascades object as it is returned by |
maxCl |
An integer defining the lower bound for the maximal number of classes. Has only to be set if the analyzed dataset has more than 50 classes. |
This function re-sorts the Subcascades object in a way that the cascades made up of the same classes are grouped.
A Groupwise object, which comprises a two-leveled list. The first level collects cascades of the same size. The second level contains a list of unique class combinations, labelled as a character string with '-' separating the different classes. For each unique set of class combinations the corresponding orders and their performance are given as a matrix, where each row contains a cascade, given as a character string of type '1>2>3', and the columns the sensitivity for the class at the corresponding position. Each matrix is sorted row-wise according to the achieved minimal classwise sensitivites of the cascades (decreasing).
as.subcascades
, summary.Groupwise
, print.Groupwise
, plot.Groupwise
, as.edgedataframe
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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
subcascades = subcascades(predMap,thresh=0.7)
#create a Groupwise object
groupwise = groupwise(subcascades)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.