get_prc {EGAD} | R Documentation

## Build precision-recall curve

### Description

The function calculates the recall and precision

### Usage

    get_prc(scores, labels)

### Arguments

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

### Value

recall,precision numeric arrays

### Examples

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

[Package EGAD version 1.12.0 Index]