Learn R Programming

ORION (version 1.1.0)

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

Description

Prints all details about a Groupwise object.

Usage

# S3 method for Groupwise
print(x, printSizes = length(x), ...)

Arguments

x

A Groupwise object as it is returned by groupwise-function.

printSizes

Integer that specifies how many of the cascade sizes (starting with the largest cascades) should be printed.

...

Further parameters

Details

Prints all details about a given Groupwise object. A Groupwise object re-sorts a Subcascades object in a way that the cascades made up of the same classes are grouped. The printSizes parameter can be used to control the cascade sizes to be printed.

Examples

Run this code
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)

#create a Groupwise object
groupwise = groupwise(subc)

print(groupwise, printSizes = 2)

Run the code above in your browser using DataLab