Run number of hyperparameter sweep?

Hi there,

When running a hyperparameter sweep, is there any option to access the run number of a particularl run, within the train() function?

I have:

sweep_id = wandb.sweep(sweep=sweep_configuration, project='hyperparam_sweeps_dev')

wandb.agent(sweep_id, function=train, count=8)

and would like to have a variable inside the train function that corresponds to the run number, which In this case would be from 1-8.

Thanks!

Hi Chris,

Happy to help. There isn’t currently a way for you to access the run number directly, but here are a few workarounds:

  • You can use wandb.log and manually log run numbers if you’d like them to be numbered 1-8 (or if you’d like to save them as artifacts, that is an option too)
  • Alternatively, you can access the run ID for a particular run using wandb.run.id if you’d like to access the unique run ID’s for a particular run.

All the best,

Uma

Hi chris-pedersen, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.