Why is a wandb config not indexable by field name recursively?

see this very weird behaviour:

(Pdb) config.report_to
'none'
(Pdb) config.parameters
{'optimizer': ['nadam'], 'scheduler': {'values': ['cosine']}, 'lr': 0.0001, 'batch_size': 32, 'num_its': 2}
(Pdb) config.parameters.lr
*** AttributeError: 'dict' object has no attribute 'lr'

Hey @brando, you should be able to access the learning rate by running config.parameters['lr']

How are you trying to index the field names recursively? If you have a sample script, I’d love to take a look.

I think once the config has been created the .parameters field and other required fields go away and one can access everything directly only by it’s name. Right?

@brando Yes, that is correct.

Hi Brando, 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!

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