run.config, which acts like a dictionary.
For runs outside a sweep, set run.config values by passing a dictionary to the config argument in wandb.init(). In a sweep, any configuration you pass to wandb.init() serves as a default value that the sweep can override.
Use run.config.setdefaults() for explicit behavior. The following code snippets illustrate both methods:
- wandb.init()
- config.setdefaults()
Sweeps