performance0 | R Documentation |
A more flexible version of performance
.
performance0(prediction.obj, measure, x.measure = "cutoff", ...)
prediction.obj |
An object of class |
measure |
Performance measure to use for the evaluation. A complete list
of the performance measures that are available for |
x.measure |
A second performance measure. If different from the default,
a two-dimensional curve, with |
... |
Optional arguments (specific to individual performance measures). |
An S4 object of class performance.
performance
## computing a simple ROC curve (x-axis: fpr, y-axis: tpr)
library(ROCR)
data(ROCR.simple)
pred <- prediction( ROCR.simple$predictions, ROCR.simple$labels)
perf <- performance0(pred,"tpr","fpr")
plot(perf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.