Hi all,
I would like to build a Precision-Recall plot (for detection data of machine learning domain ). I have the next data in my ElasticSearch index:
- detection result ("true positive", "true negative", "false positive" or "false negative")
- confidence threshold ( value in a range [0,1] )
What I need:
- calculate Precision = count(TP) / ( count(TP) + count(FP) )
- calculate Recall = count(TP) / ( count(TP)+ count(FN) )
Precision and recall should be calculated for values for confidence in different ranges, by example:
- precision and recall for values where confidence threshold > 0.3
- precision and recall for values where confidence threshold > 0.5
- precision and recall for values where confidence threshold > 0.9
And then I need to plot all calculated precision and recall values I one plot ( i already know how to do this task).
Could you please advise how I can calculate precision and recall values per confidence value and then reuse them in another plot?
thank you in advance