
Reputation
Badges 1
6 × Eureka!"plt" comes from matplotlib.pyplot and as I understand the clearML documentation, matplotlib plots are logged automatically. In other scripts, this works just fine but not with these SHAP-plots that are just displayed as empty plots:
@<1523701205467926528:profile|AgitatedDove14> can you please tell me which SHAP-, matplotlib-, and clearML-versions you are using? And would it be possible to add a title to that plot you are tracking or would plt.title() again destroy something there?
Hey, good day and thank you for your quick replies! So this is the code snippet I was using to create the plots (see appended image). I also tried removing the plt.savefig() part or the plt.show() part or manually adding the report_matplotlib_figure-part for the task but nothing seems to make a difference.
Hey Martin, unfortunately the adapted import order did not change anything. Thank you anyways 🙂 I will try to provide some standalone code so the issue can be reproduced
Hey Martin, it's really weird, but running this same code, you added here, still leads to these empty figures in the "Plots" section of the clearML experiment.
We decided now to use the "report_image"-option which at least somehow displays the plots in the "debug samples"-section of the experiment.
Thank you very much for your help 🙏
Hey @<1523701205467926528:profile|AgitatedDove14> , thank you for your help. Unfortunately it did not help to remove the "close". I also created a Dummy-Notebook to reproduce the issue. But it does not seem to work. My plot in the clearML dashboard is empty, unfortunately. I also tried, not using plt at all and uploading the shap-plot as is:
# Create the Beeswarm Plot
shap_plot = shap.summary_plot(shap_values, X_test) # Show top 5 features
clearml_task.get_logger().report_matplotlib...