-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically run a hyperparameter tuning #71
Comments
Hello, @chyalexcheng To reproduce this error I had to make the following change: add Once I had that solved, I got the same error, here I put the complete stack-trace (of what is pertinent to us):
I browsed a bit but didn't find anything helpful. I tried out commenting out some of the elements in Digging deeper I found that the source of the error is in the section where adding 'parameters' to def get_sweep_id(self):
"""
Returns the sweep_id of a sweep created with the configuration specified in sweep_config and search_space.
"""
# add default parameters from my_config into sweep_config, use 'values' as the key
self.sweep_config['parameters'] = {}
#for key, value in self.other_config.items():
# self.sweep_config['parameters'].update({key: {'values': [value]}})
# update sweep_config with the parameters to be searched and their distributions
self.sweep_config['parameters'].update(self.search_space)
# create the sweep
sweep_id = wandb.sweep(self.sweep_config, entity=self.entity_name, project=self.project_name)
self.sweep_id = sweep_id most probably there is something wrong with adding those parameters (format). |
I'm not sure but it could be the parameters = {}
for key, value in self.other_config.items():
parameters.update({key: {'values': [value]}})
parameters.update(self.search_space)
self.sweep_config['parameters'] = parameters If that doesn't fix it, there must be something wrong with one of the keys or values in this parameters dictionary, something wandb cannot deal with. |
…om the sweep_config of wandb.sweep. However, somehow the arrays get turned into string when reloaded from best_run.config
The problem was caused by three numpy arrays (input, params, and output) in best_run = sweep.best_run(order=order)
config = best_run.config in module We can simply convert these strings back to arrays but this behavior is weird. Any idea why this is happening? |
…om the sweep_config of wandb.sweep. However, somehow the arrays get turned into string when reloaded from best_run.config
Running tutorials/data_driven/LSTM/hyperbola_calibration_mixed_hypertuning.py receives the following error.
400 response executing GraphQL.
{"errors":[{"message":"400 Bad Request: The browser (or proxy) sent a request that this server could not understand.","path":["upsertSweep"]}],"data":{"upsertSweep":null}}
wandb: ERROR Error while calling W&B API: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. (<Response [400]>)
Functions relevant to this are my_training_function, hyper_train(), and lines 112
The text was updated successfully, but these errors were encountered: