GPR {measures}R Documentation

Geometric mean of precision and recall.

Description

Defined as: sqrt(ppv * tpr)

Usage

GPR(truth, response, positive)

Arguments

truth

vector of true values

response

vector of predicted values

positive

positive class

Examples

n = 20
set.seed(125)
truth = as.factor(sample(c(1,0), n, replace = TRUE))
probabilities = runif(n)
response = as.factor(as.numeric(probabilities > 0.5))
positive = 1
GPR(truth, response, positive)

[Package measures version 0.3 Index]