Search code examples
pythonmatplotlibmachine-learningpycaret

How to save a pycaret plot?


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