You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use optunity (version 1.1.1) for hyperparameter optimization
When I'm trying to use categorical parameters in the optimization, I get a strange crash.
I assume I don't define the categorical parameter correctly, though I follow the documetation
Note that some of the objects seem OK, and some contain a blank key
Error Message
Traceback (most recent call last):
File "C:/dev/git/the_lab/relevancy_models_for_dentsply/optimize_models_alt.py", line 23, in <module>
optunity.maximize_structured(score_model, search_space=search_params, num_evals=5)
File "C:\dev\venv\lib\site-packages\optunity\api.py", line 370, in maximize_structured
pmap=pmap, decoder=tree.decode)
File "C:\dev\venv\lib\site-packages\optunity\api.py", line 266, in optimize
call_dict = f.call_log.to_dict()
File "C:\dev\venv\lib\site-packages\optunity\functions.py", line 232, in to_dict
args[key].append(value)
KeyError: ''
The text was updated successfully, but these errors were encountered:
also posted in stack overflow: http://stackoverflow.com/questions/34599726/strange-error-when-using-optunity-maximize-structured-with-discrete-parameters
I'm trying to use optunity (version 1.1.1) for hyperparameter optimization
When I'm trying to use categorical parameters in the optimization, I get a strange crash.
I assume I don't define the categorical parameter correctly, though I follow the documetation
Code Example:
Output:
Note that some of the objects seem OK, and some contain a blank key
Error Message
The text was updated successfully, but these errors were encountered: