mtr_auc_prc: Area Under Precision-Recall Curve

Description Usage Arguments Value Author(s) See Also Examples

View source: R/auprc.r

Description

mtr_auc_prc

Usage

1
mtr_auc_prc(actual, predicted)

Arguments

actual

[numeric] Ground truth binary numeric vector containing 1 for the positive class and 0 for the negative class.

predicted

[numeric] A vector of estimated probabilities.

Value

A numeric scalar output

Author(s)

An Chu

See Also

mtr_auc_roc

Examples

1
2
3
4
5
set.seed(101)
pred <- runif(1000)
act <- round(pred)
pred[sample(1000, 500)] <- runif(500)   # noise
mtr_auc_prc(act, pred)

chuvanan/metrics documentation built on Nov. 4, 2019, 8:52 a.m.