perf | R Documentation |
Precision recall calculation
perf(fitted, actual, x_measure, y_measure)
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 |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.