auprc {EGAD} | R Documentation

## Area under the precision recall curve

### Description

The function calculates the area under the precision-recall curve

### Usage

    auprc(scores, labels)

### Arguments

`scores` | numeric array
`labels` | binary array

### Value

auprc Numeric value

### Examples

    labels <- c(rep(0,10))
    labels[c(1,3,5)] <- 1
    scores <- 10:1
    auprc <- auprc(scores, labels)

[Package EGAD version 1.18.0 Index]