print.Subcascades: Prints all details about a Subcascades object.

Description Usage Arguments Details Examples

View source: R/print.R

Description

Prints all details about a Subcascades object.

Usage

1
2
## S3 method for class 'Subcascades'
print(x, printSizes = length(x), ...)

Arguments

x

A Subcascades object generated by subcascades.

printSizes

Integer specifying how many elements of a Subcascades object should be printed, sorted decreasingly after cascade length.

...

Further parameters

Details

Prints all details about a given Subcascades object.

Examples

 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')

# use default parameter settings 
# -> returns cascades of all lengths that show a minimal classwise sensitivity >0.
subc = subcascades(predMap)

# print subcascades for the largest 2 sizes
print(subc, printSize=2)

ORION documentation built on Feb. 7, 2022, 5:15 p.m.