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)