I have a patient data named dat and labels (0 = No Disease, 1 = Disease) named labl both in the form of array. I predicted my model and stored the predictions named pre which is also an array, and I want to calculate and plot the AUC ROC. But I am getting this error while doing so. TypeError: Singleton
Tag: roc
How to change plot legends with roc_auc_score?
I’m plotting ROC curve with plot_roc_curve of scikit-learn, that plot legends are printed automatically. Is there a way to change them? Answer You can pretty much add anything you like to the plot object that is produced through plot_roc_curve. For instance, you can do something like this: This will return: