wandb.config
Last updated
Last updated
Config object
Config objects are intended to hold all of the hyperparameters associated with a wandb run and are saved with the run object when wandb.init
is called.
We recommend setting wandb.config
once at the top of your training experiment or setting the config as a parameter to init, ie. wandb.init(config=my_config_dict)
You can create a file called config-defaults.yaml
, and it will automatically be loaded into wandb.config
. See https://docs.wandb.com/library/config#file-based-configs.
You can also load a config YAML file with your custom name and pass the filename into wandb.init(config="special_config.yaml")
. See https://docs.wandb.com/library/config#file-based-configs.
Basic usage
Using wandb.init to set config
Nested configs
Using absl flags
Argparse flags
Using TensorFlow flags (deprecated in tensorflow v2)