# Error while hyperparameter search

**URL:** <https://community.wandb.ai/t/error-while-hyperparameter-search/2751>\
**Category:** W&B Help\
**Tags:** sweeps\
**Created:** [July 14, 2022, 5:30pm UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751 "2022-07-14T17:30:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raikar\_sumanth](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@raikar\_sumanth](https://community.wandb.ai/u/raikar_sumanth)\
**Post date:** [July 14, 2022, 5:30pm UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/1 "2022-07-14T17:30:42Z")

</div>

When I try wandb.sweep, it gives following error: wandb.errors.CommError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

Following this, is my sweep config  
{‘method’: ‘random’,  
‘metric’: {‘goal’: ‘minimize’, ‘name’: ‘loss’},  
‘parameters’: {‘batch\_size’: {‘distribution’: ‘q\_log\_uniform\_values’,  
‘max’: 256,  
‘min’: 32,  
‘q’: 8},  
‘epochs’: {‘value’: 10},  
‘fc\_layer\_size’: {‘values’: [16, 32, 64]},  
‘learning\_rate’: {‘distribution’: ‘uniform’,  
‘max’: 0.1,  
‘min’: 0},  
‘optimizer’: {‘values’: [‘adam’, ‘sgd’]},  
‘training\_snr’: {‘values’: [0.3981071705534972,  
0.44668359215096315,  
0.5011872336272722,  
0.5623413251903491,  
0.6309573444801932,  
0.7079457843841379,  
0.7943282347242815,  
0.8912509381337456,  
1.0,  
1.1220184543019633,  
1.2589254117941673,  
1.4125375446227544,  
1.5848931924611136,  
1.7782794100389228,  
1.9952623149688795,  
2.2387211385683394,  
2.51188643150958,  
2.8183829312644537,  
3.1622776601683795,  
3.548133892335755,  
3.9810717055349722,  
4.466835921509632,  
5.011872336272722,  
5.623413251903491,  
6.309573444801933,  
7.079457843841379,  
7.943282347242816,  
8.912509381337454,  
10.0]}}}

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 15, 2022, 7:30pm UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/2 "2022-07-15T19:30:39Z")

</div>

Hi @raikar_sumanth ,  
Could you share the `debug.log` and `debug-internal.log` files associated with one of the runs which displays this error? It would be very helpful in order to gain more visibility into this error and understand why you are seeing CommErrors here.

Thanks

---

<div class="post-metadata">

**Author:** ![raikar\_sumanth](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@raikar\_sumanth](https://community.wandb.ai/u/raikar_sumanth)\
**Post date:** [July 16, 2022, 6:40am UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/3 "2022-07-16T06:40:28Z")

</div>

There was no run, it gets stuck at wandb.sweep(sweep\_config). if I disable the training\_snr parameter from the sweep config , it works perfectly.  
the training\_snr parameter is given at the forward pass in pytorch like this  
for epoch in range(config.epochs):  
avg\_loss = train\_epoch(network,loader,optimizer,training\_snr)  
wandb.log({“loss”:avg\_loss, “epoch”:epoch,“training\_snr”:config.training\_snr})

Can you suggest any changes?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 21, 2022, 3:52am UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/4 "2022-07-21T03:52:45Z")

</div>

Hi @raikar_sumanth ,

Your sweep dictionary configuration is setup correctly and I was able to use it for a an experiment and didn’t run into the same error. To better assist you can you please provide the following:

- wandb version
- Full traceback of error
- Description/Summary of the experiment you are running and which integration ,if any, you are using
- Example colab of your code to attempt to reproduce your specific error

Thank-you.

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [July 26, 2022, 9:22pm UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/5 "2022-07-26T21:22:23Z")

</div>

Hi @raikar_sumanth ,

Since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [September 24, 2022, 9:22pm UTC](https://community.wandb.ai/t/error-while-hyperparameter-search/2751/6 "2022-09-24T21:22:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
