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 It Possible To Filter Tasks By There Output And Input Names Using .Get_Tasks?

Is it possible to filter tasks by there output and input names using .get_tasks?

  
  
Posted 3 years ago
Votes Newest

Answers 13


Hmm SuccessfulKoala55 what do you think?

  
  
Posted 3 years ago

I'll try it out

  
  
Posted 3 years ago

correct, you can pass it as keys on the "task_filter" argument, e.g:
Task.get_tasks(..., task_filter={'status': ['failed']})

  
  
Posted 3 years ago

ok so that way I'll run my own requests against the API endpoint

  
  
Posted 3 years ago

Is that API endpoint the same return than get_tasks is?

  
  
Posted 3 years ago

Let me check the API reference
https://clear.ml/docs/latest/docs/references/api/endpoints#post-tasksget_all
So not straight query, but maybe:
https://clear.ml/docs/latest/docs/references/api/endpoints#post-tasksget_all_ex
all section might do the trick.
SuccessfulKoala55 any chance you have an idea on what to pass there ?

  
  
Posted 3 years ago

yes exactly sorry

  
  
Posted 3 years ago

yes that was what I was looking for 🙂 ok no worries I have some ideas on a workaround for now 🙂

  
  
Posted 3 years ago

a bit fidely to figure out but I think it works. can't seem to be checking for artifact names AgitatedDove14 correct me here please but other filters work fine.

  
  
Posted 3 years ago

Hi JealousParrot68
You mean by artifact names ?

  
  
Posted 3 years ago

If you're trying to get the tasks where such an artifact exists, this is not currently supported. We're working on it as part of an advanced feature 🙂

  
  
Posted 3 years ago

JealousParrot68 what are you trying to send exactly?

  
  
Posted 3 years ago

Or rather, what are you trying to query? 🙂

  
  
Posted 3 years ago