How can we plot ROC Curve for leave one out (LOO) cross validation using scikit-learn?

落爺英雄遲暮 提交于 2019-12-13 06:33:30

问题


On the scikit-learn website there is code for ROC curve for stratified kfold but no code is present for leave one out (LOO) cross validation. I tried by changing the code of kfold by loo but the result is nan. What can be the problem?

I checked scikit-learn website but no code is there for loo cross validation.

The code for stratified kfold is given in the link given below.

https://scikit-learn.org/stable/auto_examples/model_selection/plot_roc_crossval.html

来源:https://stackoverflow.com/questions/54419109/how-can-we-plot-roc-curve-for-leave-one-out-loo-cross-validation-using-scikit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!