calc_auprg: Calculate area under the Precision-Recall-Gain curve

Description Usage Arguments Details Value

Description

This function calculates the area under the Precision-Recall-Gain curve from the results of the function create_prg_curve. More information on Precision-Recall-Gain curves and how to cite this work is available at http://www.cs.bris.ac.uk/~flach/PRGcurves/.

Usage

1
calc_auprg(prg_curve)

Arguments

prg_curve

the data structure resulting from the function create_prg_curve

Details

This function calculates the area under the Precision-Recall-Gain curve, taking into account only the part of the curve with non-negative recall gain. The regions with negative precision gain (PRG-curve under the x-axis) contribute as negative area.

Value

A numeric value representing the area under the Precision-Recall-Gain curve.


Simon-Coetzee/footprintR documentation built on May 9, 2019, 1:31 p.m.