get_prc: Build precision-recall curve

Description Usage Arguments Value Examples

View source: R/get_prc.R

Description

The function calculates the recall and precision

Usage

1
get_prc(ranks, labels)

Arguments

ranks

numeric array

labels

binary array

Value

recall,precision numeric arrays

Examples

1
2
3
4
5
labels <- c(rep(0,10))
labels[c(1,3,5)] <- 1 
scores <- 10:1
ranks <- rank(scores)
prc <- get_prc(ranks, labels)

sarbal/EGAD documentation built on May 5, 2021, 5:10 p.m.