Learn R Programming

ORION (version 1.0.3)

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

Description

Prints all details about a ConfusionTable object.

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab