Debian Codegraph @

man/prediction-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{prediction-class}
5 \alias{prediction-class}
6 \title{Class \code{prediction}}
7 \description{
8 Object to encapsulate numerical predictions together with the
9 corresponding true class labels, optionally collecting predictions and
10 labels for several cross-validation or bootstrapping runs.
11 }
12 \section{Slots}{
13
14 \describe{
15 \item{\code{predictions}}{A list, in which each element is a vector of predictions
16 (the list has length > 1 for x-validation data.}
17
18 \item{\code{labels}}{Analogously, a list in which each element is a vector of true
19 class labels.}
20
21 \item{\code{cutoffs}}{A list in which each element is a vector of all necessary
22 cutoffs. Each cutoff vector consists of the predicted scores (duplicates
23 removed), in descending order.}
24
25 \item{\code{fp}}{A list in which each element is a vector of the number (not the
26 rate!) of false positives induced by the cutoffs given in the corresponding
27 'cutoffs' list entry.}
28
29 \item{\code{tp}}{As fp, but for true positives.}
30
31 \item{\code{tn}}{As fp, but for true negatives.}
32
33 \item{\code{fn}}{As fp, but for false negatives.}
34
35 \item{\code{n.pos}}{A list in which each element contains the number of positive
36 samples in the given x-validation run.}
37
38 \item{\code{n.neg}}{As n.pos, but for negative samples.}
39
40 \item{\code{n.pos.pred}}{A list in which each element is a vector of the number of
41 samples predicted as positive at the cutoffs given in the corresponding
42 'cutoffs' entry.}
43
44 \item{\code{n.neg.pred}}{As n.pos.pred, but for negatively predicted samples.}
45 }}
46
47 \note{
48 Every \code{prediction} object contains information about the 2x2
49 contingency table consisting of tp,tn,fp, and fn, along with the
50 marginal sums n.pos,n.neg,n.pos.pred,n.neg.pred, because these form
51 the basis for many derived performance measures.
52 }
53 \section{Objects from the Class}{
54
55 Objects can be created by using the \code{prediction} function.
56 }
57
58 \references{
59 A detailed list of references can be found on the ROCR homepage at
60 \url{https://ipa-tys.github.io/ROCR/}.
61 }
62 \seealso{
63 \code{\link{prediction}},
64 \code{\link{performance}},
65 \code{\link{performance-class}},
66 \code{\link{plot.performance}}
67 }
68 \author{
69 Tobias Sing \email{[email protected]}, Oliver Sander
70 \email{[email protected]}
71 }