recall_gain: Recall Gain

Description Usage Arguments Details Value

View source: R/prg.R

Description

This function calculates Recall Gain from the entries of the contingency table: number of true positives (TP), false negatives (FN), false positives (FP), and true negatives (TN). 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
recall_gain(TP, FN, FP, TN)

Arguments

TP

number of true positives, can be a vector

FN

number of false negatives, can be a vector

FP

number of false positives, can be a vector

TN

number of true negatives, can be a vector

Details

Recall Gain (RecGain) quantifies by how much recall is improved over the recall equal to the proportion of positives (pi). RecGain=1 stands for maximal improvement (Rec=1) and RecGain=0 stands for no improvement (Rec=pi). If Rec=0, then RecGain=-Inf. It can happen that RecGain=NaN, for instance if there are no negatives (FP=0 and TN=0) and FN>0 and TP=0.

Value

Recall Gain (a numeric value less than or equal to 1; or -Inf or NaN, see the details below)


Simon-Coetzee/StatePaintR documentation built on Jan. 9, 2018, 12:13 p.m.