meeliskull / prg

Software to create Precision-Recall-Gain curves and calculate area under the curve
38 stars 18 forks source link

precision and recall parameters are in the wrong order #4

Closed levy5674 closed 8 years ago

levy5674 commented 8 years ago

The calls to precision and recall from inside create_prg_curve pass in tp, fn, fp, tn but the functions expect tp, tn, fp, fn. I changed the funtions to have the same signatures as precision_gain and recall_gain