Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.22 KB

README.rst

File metadata and controls

41 lines (23 loc) · 1.22 KB

Run parameter sweeps

Utilities for parameter sweeps, using Weights and Biases. These instructions are a minimal subset of these docs.

To begin a sweep follow these steps:

  1. Make sure wandb is installed:

    > pip install wandb
    
  2. Login to wandb:

    > wandb login
    
  3. Initialize wandb (optional):

    > wandb init
    
  4. When asked to choose a project make sure you select covasim. If you don't see a project with this name, instead select Create New and name your project covasim.

  5. From the root of this repo, initialize a sweep:

    # Choose the yaml file that corresponds to the search strategy.
    wandb sweep sweep/sweep-random.yaml
    

    This command will print out a sweep ID. Copy that to use in the next step!

  6. Launch agent(s):

    wandb agent your-sweep-id
    

    From the docs:

    > You can run wandb agent on multiple machines or in multiple processes on the same machine, and each agent will poll the central W&B Sweep server for the next set of hyperparameters to run.