Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is There A Way To Get Tasks By Hyperparameters Values? When I Use The Search In The Ui I Get The Relevant Task, But When I Try The Following I Get An Empty List:

Is there a way to get tasks by hyperparameters values?
when I use the search in the UI I get the relevant task, but when I try the following I get an empty list:
tasks = Task.get_tasks(project_name="my_project", task_filter={"_any_": {"pattern": "my_hyperparam_value", "fields":["id","name","comment","system_tags","output.model","execution.model", "execution.parameters"]}})

  
  
Posted 4 years ago
Votes Newest

Answers 11


found a reasonable solution. I had to specify http://execution.parameters.my _hyperparameter in the fields list.

  
  
Posted 4 years ago

Guys FYI:
params = task.get_parameters_as_dict()

  
  
Posted 4 years ago

Note that in case your hyper-parameter name contains . , $ , or % , they should be escaped using %2E , %24 and %% , respectively

  
  
Posted 4 years ago

Sweet! Will check it out and try to adopt 🙂

  
  
Posted 4 years ago

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

  
  
Posted 4 years ago

Thanks SuccessfulKoala55 , dropping irrelevant fields did improve the response time.

  
  
Posted 4 years ago

and of course:
task.set_parameters_as_dict(params)

  
  
Posted 4 years ago

Hi HandsomeCrow5 ,
This should be possible with {"_any_": {"pattern": "<hyper-param-value>", "fields": ["execution.parameters.<hyper-parameter-name>"]}}

  
  
Posted 4 years ago

HandsomeCrow5 Ideas on improvement are always welcome 🙂

  
  
Posted 4 years ago

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.

  
  
Posted 4 years ago