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

Description Usage Arguments Details Examples

View source: R/print.R

Description

Prints all details about a Conf object.

Usage

1
2
## S3 method for class 'Conf'
print(x, printfC = TRUE, printsC = TRUE, ...)

Arguments

x

A Conf object as it is returned by conf-function.

printfC

If TRUE, the sensitivities of the first classes are printed (TP = true positives).

printsC

If TRUE, the values of sC are printed (TN = true negatives). The values of sC correspond to the rate of samples of a given class (column), which are assigned to the second class of the base classifier (row).

...

Further parameters

Details

Prints all details about a given Conf object. A Conf object provides the conditional prediction rates of all base classifiers applied to all classes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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')

conf = conf(predMap)

print(conf)

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