luinardi / hypermapper

Black-box Optimizer based on Bayesian Optimization
MIT License
155 stars 26 forks source link

Fix problem in json files #75

Closed luigi-ga closed 1 year ago

luigi-ga commented 2 years ago

I had some problems executing "optimizer.optimize" function in the examples_scenarion/demo/demo_jupyter_notebook2021.ipynb file. After checking other examples (examples_scenarios/quick_start/branin_jupyter_notebook.ipynb that worked) I've discovered that there's a problem with the creation of json file: scenario["models"] = {} scenario["models"]["model"] = "gaussian_process" By commenting these two lines, I was able to execute the code without any problem; otherwise, I had the following error: "TypeError: 'builtin_function_or_method' object does not support item assignment".