wandb
pip install wandb
wandb login
wandb
.wandb.init
to populate wandb.config
.entity
or project
for your wandb
accountsweep.yaml
:validation_loss
in my config file, so I have to log that exact metric name in my script:wandb.log({"validation_loss": val_loss})
train.py
script on each step. The hyperparameters are also accessible via wandb.config
after wandb.init
is called.argparse
in your script, we recommend that you use underscores in your variable names instead of hyphens.sweep.yaml
, run this command to get started:wandb sweep
for the next set of hyperparameters to run. You'll want to use the same sweep ID for all agents who are participating in the same sweep.wandb agent
command:Ctrl+c
to stop the run that the sweep agent is currently running. To kill the agent, hit Ctrl+c
again after the run is stopped.