Hp-sweep with function with arguments


Im wondering if its possible to have hp-sweep and instantiating wandb agent (using wandb.agent api) , such that the function will have arguments, in all of the example I’ve seen that the passed functions to wandb.agent has no args at all.

My training script looks as follows

def trainer(input1, input2, input3):
  # construct cfg file given the inputs
  # passing the cfg file to wandb.init() 
  # receiving the returned config from wandb.config (with the decided params by the wandb Params controler)
  # Continue training as usual, given the latest cfg.

I will be happy to get some inspiration about other ways to implement this
Hope this is helpful


Hi Dor,

Thanks for writing in! You can pass arguments to the function in the agent in the normal way function=main(args), is this raising you any error?


Hi Dor,

We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.


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