How can I resume a sweep using Python code?
To resume a sweep, pass the sweep_id
to the wandb.agent()
function.
import wandb
sweep_id = "your_sweep_id"
def train():
# Training code here
pass
wandb.agent(sweep_id=sweep_id, function=train)
To resume a sweep, pass the sweep_id
to the wandb.agent()
function.
import wandb
sweep_id = "your_sweep_id"
def train():
# Training code here
pass
wandb.agent(sweep_id=sweep_id, function=train)