pythonmatplotlibplotyaxisyellowbrick

How to remove the title from yellowbrick ROCAUC


I am using yellowbrick to plot the AUCROC. I want to remove the title from the plot, to make it empty without the plot title.

model = classifier
visualizer = ROCAUC(model, encoder={0: 'class' , 1: 'class2'}
visualizer.fit(X_train, y_train)        
visualizer.score(X_test, y_test)       
visualizer.show()   

                

Solution

  • yellowbrick documentation How can I change the title of a Yellowbrick plot?

    If I use single space in title=" " then I get plot without title.
    It doesn't work with empty string title="".


    Minimal working example

    from yellowbrick.classifier import ROCAUC
    from sklearn.linear_model import RidgeClassifier
    
    # single space in title
    visualizer = ROCAUC(RidgeClassifier(), title=" ")
    visualizer.show()
    

    enter image description here