plot_prc: Plot precision recall curve

Description Usage Arguments Value Examples

View source: R/plot_prc.R

Description

The function calculates the precision and recall and plots the curve

Usage

1
plot_prc(scores, labels)

Arguments

scores

numeric array

labels

binary array

Value

prc numeric arrays

Examples

1
2
3
4
labels <- c(rep(0,10))
labels[c(1,3,5)] <- 1 
scores <- 10:1
roc <- plot_prc(scores, labels)

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.