How does sklearn select threshold steps in precision recall curve?

前端 未结 1 1090
孤街浪徒
孤街浪徒 2020-12-31 18:57

I trained a basic FFNN on a example breast cancer dataset. For the results the precision_recall_curve function gives datapoints for 416 different thresholds. My

相关标签:
1条回答
  • 2020-12-31 19:33

    Reading the source, precision_recall_curve does compute precision and recall for each unique predicted probability (here pred) but then omits the output for all thresholds that result in full recall (apart from the very first threshold to achieve full recall).

    0 讨论(0)
提交回复
热议问题