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, Is There An Equivalent For Set_Name To Change The Task'S Project Name? I'M Stuck In A Loop, I Have To Run Task.Init Right At The Start Of The File Because I Give It

Hi, is there an equivalent for set_name to change the task's project name?
I'm stuck in a loop, I have to run task.init right at the start of the file because I give it
auto_connect_frameworks={"matplotlib": False}which to my understanding has to be given before a call to an argparser, but the argparser gives me the name of the project of the task, which must be created before the argparser is called.

  
  
Posted 3 years ago
Votes Newest

Answers 8


Thanks Martin 🙂

  
  
Posted 3 years ago

Regrading the project name:
set_project will support project_name in the next version 🙂 project_id=[p.id for p in Task.get_projects() if p.name==project_name][0]

  
  
Posted 3 years ago

SmarmySeaurchin8 regarding the original question:
task.set_project(project_id)Task.get_projects() to get all the project names/ids

  
  
Posted 3 years ago

which to my understanding has to be given before a call to an argparser,

SmarmySeaurchin8 You can call argparse before Task.init, no worries it will catch the arguments and trains-agent will be able to override them :)

  
  
Posted 3 years ago

Yes including this. (There was a fix to an issue with trains-agent and disabling frameworks, it is already part of 0.16.3 )

  
  
Posted 3 years ago

Oof, if all I have is a project bame to set? (Which could be a non existing project as well)

  
  
Posted 3 years ago

SmarmySeaurchin8
args=parse.parse() task = Task.init(project_name=args.project or None, task_name=args.task or None)You should probably look at the docstring 😉

:param str project_name: The name of the project in which the experiment will be created. If the project does
not exist, it is created. If project_name is None, the repository name is used. (Optional)
:param str task_name: The name of Task (experiment). If task_name is None, the Python experiment
script's file name is used. (Optional)

  
  
Posted 3 years ago

Including this?
auto_connect_frameworks={"matplotlib": False} I think Mushon has told me otherwise a while ago

  
  
Posted 3 years ago
569 Views
8 Answers
3 years ago
one year ago
Tags