Guys FYI:params = task.get_parameters_as_dict()
Note that in case your hyper-parameter name contains . , $ , or % , they should be escaped using %2E , %24 and %% , respectively
HandsomeCrow5 Ideas on improvement are always welcome 🙂
found a reasonable solution. I had to specify http://execution.parameters.my _hyperparameter in the fields list.
AgitatedDove14 I was trying to get all tasks that hold a specific value/pattern in a hyperparameter. e.g. - after performing grid-search, get all training tasks with a specific learning rate
HandsomeCrow5 I see, my bad.
BTW: Did you see this one?
https://github.com/allegroai/trains/blob/master/examples/optimization/hyper-parameter-optimization/hyper_parameter_optimizer.py
And the helper classes here: https://github.com/allegroai/trains/tree/master/trains/automation
HandsomeCrow5 you beat my by a minute 🙂
Note, however, that there's no need to include any of the other fields in the "fields" section as it will only slow the server when searching in these fields as well.
Thanks SuccessfulKoala55 , dropping irrelevant fields did improve the response time.
Hi HandsomeCrow5 ,
This should be possible with {"_any_": {"pattern": "<hyper-param-value>", "fields": ["execution.parameters.<hyper-parameter-name>"]}}
and of course:task.set_parameters_as_dict(params)
Sweet! Will check it out and try to adopt 🙂