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
I Want To Execute A Script Via Trains-Agent, But I Want To Be Able To Provide The Location Of A Config File By Specifying The Path Before Trains-Agent Executes The Script (Like A Flag Or Command Line Argument). How Can I Accomplish This?

I want to execute a script via trains-agent, but I want to be able to provide the location of a config file by specifying the path before trains-agent executes the script (like a flag or command line argument). How can I accomplish this?

  
  
Posted 4 years ago
Votes Newest

Answers 9


Thanks! yeah that sounds good. Is there any way to modify the config aside from using the UI?

  
  
Posted 4 years ago

Yes

  
  
Posted 4 years ago

GiddyTurkey39 do you mean the config file for the Trains Agent itself?

  
  
Posted 4 years ago

You mean from code externally ?

  
  
Posted 4 years ago

Awesome, thanks!

  
  
Posted 4 years ago

I mean the config file. Can I change the parameters before executing the draft task? Or do changes to the parameters have to be committed to the git repo before the draft task can be executed?

  
  
Posted 4 years ago

Can I change the parameters before executing the draft task

Yes you can, after you clone the experiment everything becomes editable, so you can edit the config in the UI.
For example, let's assume I have config.yml, and in my code I do:
my_file = task.connect_configuration('config.yml') with open(my_file, 'rt') as f: ...Then after I clone it in the UI and edit the configuration, when it will be executed remotely,
my_file will contain the content of the configuration as seen in the UI.
Sounds good ?

  
  
Posted 4 years ago

Hi GiddyTurkey39
us the config file connect to the Task via Task.connect_configuration ?

  
  
Posted 4 years ago

The easiest if export_task / update_task:
https://allegro.ai/docs/task.html#trains.task.Task.export_task
https://allegro.ai/docs/task.html#trains.task.Task.update_task
Check the structure returned by export_task, you'll find the entire configuration test there,
then, you can use that to update back the Task.

BTW:
Partial update is also supported...

  
  
Posted 4 years ago
1K Views
9 Answers
4 years ago
one year ago
Tags