Plotting a ROC curve in scikit yields only 3 points

前端 未结 4 849
太阳男子
太阳男子 2020-12-31 03:06

TLDR: scikit\'s roc_curve function is only returning 3 points for a certain dataset. Why could this be, and how do we control how many points to get ba

4条回答
  •  不思量自难忘°
    2020-12-31 03:25

    I had the same problem with a different example. The mistake I made was to input the outcomes for a given threshold and not the probabilities in the argument y_score of roc_curve. It also gives a plot with three points but it is a mistake !

提交回复
热议问题