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
Hi, Thank You Very Much For Developing The Useful Tool! I Have A Question About The Python Client, Can The Client Search Existing Tasks Which Match Particular Configurations? I’D Like To Search Existing Results Of Experiments With A Particular Hyperparam

Hi, thank you very much for developing the useful tool!
I have a question about the python client, can the client search existing tasks which match particular configurations?
I’d like to search existing results of experiments with a particular hyperparams and aggregate them.
Thanks!

  
  
Posted 4 years ago
Votes Newest

Answers 2


Got it Thanks! I’ll try in trains-agent

  
  
Posted 4 years ago

Hi DizzySquirrel38 ,
You can use the APIClient provided in Trains Agent to write scripts that interact with the Trains Server. See https://github.com/allegroai/trains-agent/blob/master/examples/archive_experiments.py example on how to use the APIClient .
Since you can't currently specify hyper-parameter values as search criteria in APIClient.tasks.get_all() , I suggest you start by getting all relevant tasks, than filter them by your required criteria, for example:
` tasks = client.tasks.get_all(
project=["<project-id>"],
only_fields=["id", "name", "execution.parameters"]
)

relevant_tasks = [
t for t in tasks
if int(t.execution.parameters.get("epochs", 0)) >= 2
] `Which filters out tasks with the "epochs" hyper-parameter
equal or larger than 2. Note the use of only_fields=... that obtains only the fields you're interested in (to avoid a large result size in case your query returns many tasks)

  
  
Posted 4 years ago
1K Views
2 Answers
4 years ago
one year ago
Tags