Plotting a ROC curve in scikit yields only 3 points

前端 未结 4 825
太阳男子
太阳男子 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:47

    The number of points depend on the number of unique values in the input. Since the input vector has only 2 unique values, the function gives correct output.

提交回复
热议问题