- Python script or notebook
- CLI
Use the W&B SDK to initialize a sweep. Pass the sweep configuration dictionary to the The
sweep parameter. Optionally provide the name of the project for the project parameter (project) where you want W&B to store the output of the run. If you don’t specify the project, W&B puts the run in an “Uncategorized” project.wandb.sweep() function returns the sweep ID. The sweep ID includes the entity name and the project name. Note the sweep ID, since you pass it to agents when you start them. With the sweep ID, you’re ready to launch one or more agents to execute runs.