perf {ezplot} | R Documentation |
perf
Description
Precision recall calculation
Usage
perf(fitted, actual, x_measure, y_measure)
Arguments
fitted |
Vector with values between 0 and 1 |
actual |
Vector with two levels |
x_measure |
metric for ROCR::performance |
y_measure |
metric for ROCR::performance |
Examples
ezplot:::perf(runif(1), sample(c(TRUE, FALSE), 1, replace = TRUE), "rpp", "lift")
ezplot:::perf(runif(10), sample(c(TRUE, FALSE), 10, replace = TRUE), "rpp", "lift")
ezplot:::perf(runif(5), sample(c(TRUE, FALSE), 5, replace = TRUE), "rec", "prec")
ezplot:::perf(runif(5), sample(c(TRUE, FALSE), 5, replace = TRUE), "fpr", "tpr")
ezplot:::perf(runif(5), sample(c(TRUE, FALSE), 5, replace = TRUE), "cutoff", "tpr")
[Package ezplot version 0.7.13 Index]