How can I resume a sweep using Python code?
less than a minute
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)
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.