performance0: [.] Cusstomizable function 'performance0': function to create...

View source: R/ROCR_funs.R

performance0R Documentation

[.] Cusstomizable function 'performance0': function to create performance objects

Description

A more flexible version of performance.

Usage

performance0(prediction.obj, measure, x.measure = "cutoff", ...)

Arguments

prediction.obj

An object of class prediction.

measure

Performance measure to use for the evaluation. A complete list of the performance measures that are available for measure and x.measure is given in the 'Details' section.

x.measure

A second performance measure. If different from the default, a two-dimensional curve, with x.measure taken to be the unit in direction of the x axis, and measure to be the unit in direction of the y axis, is created. This curve is parametrized with the cutoff.

...

Optional arguments (specific to individual performance measures).

Value

An S4 object of class performance.

See Also

performance

Examples


 ## 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)



GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.