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 Everyone, If I Want To Run A Script That Has Trains Tracking Statements In It But Just This Time I Want To Disable All Logging, How Would I Go About That?

Hi everyone, if I want to run a script that has Trains tracking statements in it but just this time I want to disable all logging, how would I go about that?

  
  
Posted 4 years ago
Votes Newest

Answers 3


Hi IntriguedRat44
You can make log it offline (i.e. into a local folder/zip) by calling:
Task.set_offline(True)You can also set the environment variable:
TRAINS_OFFLINE_MODE=1You could also just skip the Trains.init call 😉
Does that help?

  
  
Posted 4 years ago

Thanks guys 🙏 I was looking for a way to do it that doesn’t require code changes, which I got - Much appreciated!

  
  
Posted 4 years ago

Hi IntriguedRat44

If you don’t want sending framework’s outputs, you can disable those with auto_connect_frameworks=False in your Task.init call.

You can find more options https://github.com/allegroai/trains/blob/master/trains/task.py#L328

  
  
Posted 4 years ago
892 Views
3 Answers
4 years ago
one year ago
Tags