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

Description Usage Arguments Details Examples

View source: R/print.R

Description

Prints all details about a ConfusionTable object.

Usage

1
2
## S3 method for class 'ConfusionTable'
print(x, ...)

Arguments

x

A ConfusionTable object as it is returned by confusionTable-function.

...

Further parameters

Details

Prints all conditional prediction rates for the specified cascade.

Examples

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

# Calculation of the confusion matrix for '0>2>3>4'.
confTable = confusionTable(predMap, cascade = '0>2>3>4')

print(confTable)

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