How to save a pycaret plot?

Issue

I’m trying to save a pycaret plot but only get a blank file:

plt.figure(figsize = (18,9))
plot_model(pycaret_xgboost, 'auc')
plt.savefig('ROC_xboost.svg')

Solution

As you are trying to save the figure as svg file,this problem may occur. Here is an answer on StackOverflow that may help you

Answered By – maria_g

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published