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

Description Usage Arguments Details Value

View source: R/prg.R

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/StatePaintR documentation built on Jan. 9, 2018, 12:13 p.m.