File: ROCR.simple.Rd

package info (click to toggle)
r-cran-rocr 1.0-11-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 676 kB
  • sloc: sh: 13; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 870 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zzz.R
\docType{data}
\name{ROCR.simple}
\alias{ROCR.simple}
\title{Data set: Simple artificial prediction data for use with ROCR}
\format{
A two element list. The first element, \code{ROCR.simple$predictions}, is a
vector of numerical predictions. The second element,
\code{ROCR.simple$labels}, is a vector of corresponding class labels.
}
\usage{
data(ROCR.simple)
}
\description{
A mock data set containing a simple set of predictions and corresponding
class labels.
}
\examples{
# plot a ROC curve for a single prediction run
# and color the curve according to cutoff.
library(ROCR)
data(ROCR.simple)
pred <- prediction(ROCR.simple$predictions, ROCR.simple$labels)
pred
perf <- performance(pred,"tpr","fpr")
perf
plot(perf,colorize=TRUE)
}
\keyword{datasets}