-
Notifications
You must be signed in to change notification settings - Fork 12
Weights and Biases
Robin van de Water edited this page Jun 2, 2023
·
2 revisions
This sweep file shows an example on how to run a hyperparameter sweep with W&B. The general structure of the YAML should look like this:
program: icu-benchmarks
command:
- ${env}
- ${program}
- "train"
# .... other program parameters ....
- "--wandb-sweep"
method: grid
parameters:
# gin config parameter name:
# values: [a, b, etc...]
# example:
ImputationDataset.mask_method:
values: ["MCAR", "MAR", "MNAR"]
You can then create a sweep with
wandb sweep path/to/sweep_file.yaml
which will give you a sweep id.
and start an agent to perform the optimization using the following command:
wandb agent YOUR_SWEEP_ID