Debian Codegraph @

man/performance-class.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/zzz.R
3 \docType{class}
4 \name{performance-class}
5 \alias{performance-class}
6 \title{Class \code{performance}}
7 \description{
8 Object to capture the result of a performance evaluation, optionally
9 collecting evaluations from several cross-validation or bootstrapping runs.
10 }
11 \details{
12 A \code{performance} object can capture information from four
13 different evaluation scenarios:
14 \itemize{
15 \item The behaviour of a cutoff-dependent performance measure across
16 the range of all cutoffs (e.g. \code{performance( predObj, 'acc' )} ). Here,
17 \code{x.values} contains the cutoffs, \code{y.values} the
18 corresponding values of the performance measure, and
19 \code{alpha.values} is empty.\cr
20 \item The trade-off between two performance measures across the
21 range of all cutoffs (e.g. \code{performance( predObj,
22 'tpr', 'fpr' )} ). In this case, the cutoffs are stored in
23 \code{alpha.values}, while \code{x.values} and \code{y.values}
24 contain the corresponding values of the two performance measures.\cr
25 \item A performance measure that comes along with an obligatory
26 second axis (e.g. \code{performance( predObj, 'ecost' )} ). Here, the measure values are
27 stored in \code{y.values}, while the corresponding values of the
28 obligatory axis are stored in \code{x.values}, and \code{alpha.values}
29 is empty.\cr
30 \item A performance measure whose value is just a scalar
31 (e.g. \code{performance( predObj, 'auc' )} ). The value is then stored in
32 \code{y.values}, while \code{x.values} and \code{alpha.values} are
33 empty.
34 }
35 }
36 \section{Slots}{
37
38 \describe{
39 \item{\code{x.name}}{Performance measure used for the x axis.}
40
41 \item{\code{y.name}}{Performance measure used for the y axis.}
42
43 \item{\code{alpha.name}}{Name of the unit that is used to create the parametrized
44 curve. Currently, curves can only be parametrized by cutoff, so
45 \code{alpha.name} is either \code{none} or \code{cutoff}.}
46
47 \item{\code{x.values}}{A list in which each entry contains the x values of the curve
48 of this particular cross-validation run. \code{x.values[[i]]},
49 \code{y.values[[i]]}, and \code{alpha.values[[i]]} correspond to each
50 other.}
51
52 \item{\code{y.values}}{A list in which each entry contains the y values of the curve
53 of this particular cross-validation run.}
54
55 \item{\code{alpha.values}}{A list in which each entry contains the cutoff values of
56 the curve of this particular cross-validation run.}
57 }}
58
59 \section{Objects from the Class}{
60
61 Objects can be created by using the \code{performance} function.
62 }
63
64 \references{
65 A detailed list of references can be found on the ROCR homepage at
66 \url{https://ipa-tys.github.io/ROCR/}.
67 }
68 \seealso{
69 \code{\link{prediction}}
70 \code{\link{performance}},
71 \code{\link{prediction-class}},
72 \code{\link{plot.performance}}
73 }
74 \author{
75 Tobias Sing \email{[email protected]}, Oliver Sander
76 \email{[email protected]}
77 }