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
Guys FYI:params = task.get_parameters_as_dict()
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.
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
found a reasonable solution. I had to specify http://execution.parameters.my _hyperparameter
in the fields
list.
Thanks SuccessfulKoala55 , dropping irrelevant fields did improve the response time.
and of course:task.set_parameters_as_dict(params)
Note that in case your hyper-parameter name contains .
, $
, or %
, they should be escaped using %2E
, %24
and %%
, respectively
Hi HandsomeCrow5 ,
This should be possible with {"_any_": {"pattern": "<hyper-param-value>", "fields": ["execution.parameters.<hyper-parameter-name>"]}}
HandsomeCrow5 Ideas on improvement are always welcome 🙂
Sweet! Will check it out and try to adopt 🙂