conf: Construction of Binary Classifier Sensitivities

Description Usage Arguments Details Value See Also Examples

View source: R/conf.R

Description

Sensitivities of all pairwise binary classifiers for all classes.

Usage

1

Arguments

predictionMap

A PredictionMap object as it is returned by predictionMap-function. It is made up of a list of two matrices(pred and meta). Both matrices provide information on individual samples column-wise. The rownames of the pred-matrix (e.g. [0vs1]) show the classes of the binary base classifier. The elements are the prediction result of a specific training. The rows that correspond to base classifiers that would separate the same class consists of -1. Those rows are not used within the analysis. The meta information connects the values in the pred-matrix to a specific fold, run and contains the original label.

Details

The Conf object contains all class sensitivities for each binary trained classifiers. The $fC-part is a matrix with one column and contains the sensitivities for the first class of each pairwise classifier. The rows stand for the pairwise classifiers, whereby 0vs1 means that this classifier was trained for class 0 against class 1, with class 0 being the first class. The number '-1' is used as placeholder. The $sC-part is a matrix and contains the preformance measures for all second classes, which are meant here as all classes except the first class. The rows correspond to the binary classifiers and the columns to the classes.

Value

Object of class Conf. Consists of a list of two numeric matrices fC and sC.

See Also

summary.Conf, print.Conf, plot.Conf

Examples

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

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