automl / CAVE

[deprecated] Configuration Assessment, Visualization and Evaluation
https://www.automl.org
BSD 3-Clause "New" or "Revised" License
46 stars 13 forks source link

Error in interactive pimp-plots #291

Open shukon opened 4 years ago

shukon commented 4 years ago

See #289 for env where error occurs...

``` INFO:pimp.LPI:--------------------------------------------------> Found 500 valid neighbors ERROR:cave.cavefacade.CAVE:local variable 'p' referenced before assignment Traceback (most recent call last): File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 55, in wrap analyzer = f(self, *args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 341, in local_parameter_importance return LocalParameterImportance(self.runscontainer) File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/local_parameter_importance.py", line 22, in __init__ self.parameter_importance("lpi") File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/base_parameter_importance.py", line 60, in parameter_importance 'bokeh': components(run.pimp.evaluator.plot_bokeh(show_plot=False)) File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/local_parameter_importance.py", line 450, in plot_bokeh plots.append(Panel(child=Row(p), title=param)) UnboundLocalError: local variable 'p' referenced before assignment Traceback (most recent call last): File "/home/shuki/niki/virtualenvs/cave_dev/bin/cave", line 33, in sys.exit(load_entry_point('cave', 'console_scripts', 'cave')()) File "/home/shuki/Repos/CAVE/cave/cave_cli.py", line 295, in entry_point cave.main_cli() File "/home/shuki/Repos/CAVE/cave/cave_cli.py", line 290, in main_cli cave.analyze() File "/home/shuki/Repos/CAVE/cave/utils/timing.py", line 11, in wrap result = f(*args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 233, in analyze self.parameter_importance(self._get_dict(self.website, "Parameter Importance")) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 356, in parameter_importance self.local_parameter_importance(d=d) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 55, in wrap analyzer = f(self, *args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 341, in local_parameter_importance return LocalParameterImportance(self.runscontainer) File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/local_parameter_importance.py", line 22, in __init__ self.parameter_importance("lpi") File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/base_parameter_importance.py", line 60, in parameter_importance 'bokeh': components(run.pimp.evaluator.plot_bokeh(show_plot=False)) File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/local_parameter_importance.py", line 450, in plot_bokeh plots.append(Panel(child=Row(p), title=param)) UnboundLocalError: local variable 'p' referenced before assignment ```
``` INFO:fanova.visualizer.Visualizer:creating ../tmp/analysis_data/2433029771847169631/fanova/lr_batch_size.png ERROR:cave.cavefacade.CAVE:must be str, not int Traceback (most recent call last): File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 55, in wrap analyzer = f(self, *args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 324, in cave_fanova fanova = Fanova(self.runscontainer) File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/fanova.py", line 35, in __init__ self.parameter_importance("fanova") File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/base_parameter_importance.py", line 60, in parameter_importance 'bokeh': components(run.pimp.evaluator.plot_bokeh(show_plot=False)) File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/fanova.py", line 256, in plot_bokeh inc_indices = [labels.index(val) for val in values] File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/fanova.py", line 256, in inc_indices = [labels.index(val) for val in values] TypeError: must be str, not int Traceback (most recent call last): File "/home/shuki/niki/virtualenvs/cave_dev/bin/cave", line 33, in sys.exit(load_entry_point('cave', 'console_scripts', 'cave')()) File "/home/shuki/Repos/CAVE/cave/cave_cli.py", line 295, in entry_point cave.main_cli() File "/home/shuki/Repos/CAVE/cave/cave_cli.py", line 290, in main_cli cave.analyze() File "/home/shuki/Repos/CAVE/cave/utils/timing.py", line 11, in wrap result = f(*args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 233, in analyze self.parameter_importance(self._get_dict(self.website, "Parameter Importance")) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 353, in parameter_importance self.cave_fanova(d=d) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 55, in wrap analyzer = f(self, *args, **kw) File "/home/shuki/Repos/CAVE/cave/cavefacade.py", line 324, in cave_fanova fanova = Fanova(self.runscontainer) File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/fanova.py", line 35, in __init__ self.parameter_importance("fanova") File "/home/shuki/Repos/CAVE/cave/analyzer/parameter_importance/base_parameter_importance.py", line 60, in parameter_importance 'bokeh': components(run.pimp.evaluator.plot_bokeh(show_plot=False)) File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/fanova.py", line 256, in plot_bokeh inc_indices = [labels.index(val) for val in values] File "/home/shuki/niki/virtualenvs/cave_dev/lib/python3.6/site-packages/pimp/evaluator/fanova.py", line 256, in inc_indices = [labels.index(val) for val in values] TypeError: must be str, not int ```