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
Hello People, Is There An Easy Way For Clearml To Work With

Hello people, is there an easy way for clearml to work with .yml files as requirements file for task.create() without adjusting them manually? My repos requirements.yml has the following structure:
` name: xyz
channels:

  • conda-forge
  • nodefaults
    dependencies:
  • package1
  • package2
  • pip:
    • package3
      ... `Thank you for the help!
  
  
Posted 3 years ago
Votes Newest

Answers 5


TartSeal39 , Hi 🙂
Do I understand correctly that you want to push parameters for Task.create() from a .yml file?

  
  
Posted 3 years ago

yeah, so I want to do Task.create(reqirements_file=‘/path/to/file/requirements.yml’), but I think I’ll just parse it manually then

  
  
Posted 3 years ago

Hi TartSeal39
So the thing is, the agent does not support yaml env for conda. Currently if the requirements section is empty, the agent will use the requirements.txt of the repo. We first need to add support for conda yaml, and then allow you to disable the auto requirements or push the specific yaml. Would that work? Also is there a reason the auto package is not working?

  
  
Posted 3 years ago

oh, right, I get that, thanks 🙂 So my repo is usually just built with the yaml, so for now, I don’t have a requirements.txt in the repo, since it’s not needed. But for the time being, I’ll just parse the requirements from the yaml file and add them with add_requirement() , thanks for the insight 🙂

  
  
Posted 3 years ago

TartSeal39 please let me know if it works, conda is a strange beast and we do our best to tame it.
Specifically when you execute manually on a conda env we collect (separately) the conda packages & the python packages (so later we can replicate on both conda & pip, or at least do our best)
Are you running both development env and agent with conda ?

  
  
Posted 3 years ago