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
How Does The

How does the Preprocess class exactly work? I need to pass information to it but it's _ init _ function doesn't have any parameters. How can I load an artifact when the class is constructed? I can pass the task_id in an environment variable and pick it up with os.environ["TASK_ID"] but how does the environment variable gets declared in the server in the first place?

  
  
Posted 2 years ago
Votes Newest

Answers 4


clearml-serving needs a "Preprocess" class in a file that is added to the endpoint.

  
  
Posted 2 years ago

Hi ConvolutedSealion94 , can you please elaborate on what exactly you're trying to do? Also, I'm not sure Preprocess is part of ClearML

  
  
Posted 2 years ago

This receives the payload from the server and turns it into something that can be fed to the model. This in out case depends on a data structure that is stored on the clearml server as an artifact. I need to communicate this to the class so it can pick it up and use it when called

  
  
Posted 2 years ago