mljar / mljar-supervised

Python package for AutoML on Tabular Data with Feature Engineering, Hyper-Parameters Tuning, Explanations and Automatic Documentation
https://mljar.com
MIT License
2.97k stars 392 forks source link

automl error #659

Open rkdrn79 opened 9 months ago

rkdrn79 commented 9 months ago

Error for 2_Default_Xgboost

matplotlib is required for plotting when the default backend "matplotlib" is selected. Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/supervised/base_automl.py", line 1195, in _fit trained = self.train_model(params) File "/usr/local/lib/python3.10/dist-packages/supervised/base_automl.py", line 404, in train_model self.keep_model(mf, model_subpath) File "/usr/local/lib/python3.10/dist-packages/supervised/base_automl.py", line 317, in keep_model self.select_and_save_best() File "/usr/local/lib/python3.10/dist-packages/supervised/base_automl.py", line 1393, in select_and_save_best LeaderboardPlots.compute( File "/usr/local/lib/python3.10/dist-packages/supervised/utils/leaderboard_plots.py", line 80, in compute df2[mins.index].boxplot(rot=90, fontsize=12) File "/usr/local/lib/python3.10/dist-packages/pandas/plotting/_core.py", line 515, in boxplot_frame self, File "/usr/local/lib/python3.10/dist-packages/pandas/plotting/_core.py", line 1886, in _get_plot_backend key = "pandas_plotting_backends" File "/usr/local/lib/python3.10/dist-packages/pandas/plotting/_core.py", line 1817, in _load_backend

n = 10000 ImportError: matplotlib is required for plotting when the default backend "matplotlib" is selected.

pplonski commented 9 months ago

Hi @rkdrn79,

Thank you for reporting the issue. Do you have matplotlib package installed?