问题
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