DeepCAVE icon indicating copy to clipboard operation
DeepCAVE copied to clipboard

Plots: Make matplotlib outputs available for more plugins

Open sarah-segel opened this issue 1 year ago • 4 comments

Plots are mainly created with Plotly in DeepCAVE. For some plots, a matplotlib version is available as well. This should be added for more plugins.

sarah-segel avatar Apr 12 '23 09:04 sarah-segel

It looks like he method for the matplotlib version for (e.g.) the importances plugin returns a plotly, not a matplotlib though. Am I seeing this right or can someone clarify?

KrissiHub avatar Sep 05 '23 06:09 KrissiHub

So by default, a plotly is returned. But when selecting matplotlib style, the method load_mpl_outputs() should be used instead of load_outputs(): https://github.com/automl/DeepCAVE/blob/1851126c064a3120299250fb39b2c00d00abbc2e/deepcave/plugins/init.py#L506 I think currently the plugins parteto front and importance have that method. E.g. for the importance plugin: https://github.com/automl/DeepCAVE/blob/1851126c064a3120299250fb39b2c00d00abbc2e/deepcave/plugins/hyperparameter/importances.py#L291 Does that answer your question, or did I overlook something there?

sarah-segel avatar Sep 05 '23 08:09 sarah-segel

Nevertheless, there seem to be some problems with the existing matplotlib methods. E.g. they use seaborn style, but seaborn is not in the requirements - I will add that. For the pareto front, it seems like there is another problem as well, which needs to be checked at some point (it creates a plot but does not show the pareto front).

sarah-segel avatar Sep 05 '23 08:09 sarah-segel

I think the main part of my problem of understanding the method lies here https://github.com/automl/DeepCAVE/blob/1851126c064a3120299250fb39b2c00d00abbc2e/deepcave/plugins/hyperparameter/importances.py#L284-L288 If my understanding is correct, the returned object is a plotly object, but the methods name suggest, that it returns a matplotlib object.

KrissiHub avatar Sep 05 '23 09:09 KrissiHub

Closed as matplotlib will be removed for now, see #168

sarah-segel avatar Aug 05 '24 06:08 sarah-segel