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'M Trying To Run A Reinforcement Learning Task With Trains-Agent, And The Environment I'M Running Needs An X Server To Get The Environment State. I Can Get Around This Using

I'm trying to run a reinforcement learning task with trains-agent, and the environment I'm running needs an X server to get the environment state. I can get around this using xvfb-run -s "-screen 0 1400x900x24" python task.py when running the task from command line. Is there a way I can get trains-agent to do the same?

  
  
Posted 4 years ago
Votes Newest

Answers 3


Hi PunySquid88 , you can do that by running trains-agent using the same xvfb-run command, for example xvfb-run -s "-screen 0 1400x900x24" trains-agent daemon ...
When this trains-agent instance will start running an experiment in a python virtualenv, all environment variable will be visible to your experiment code...

  
  
Posted 4 years ago

PunySquid88 you can also run xvfb directly from python https://pypi.org/project/xvfbwrapper/ . We have been using it this way.

  
  
Posted 4 years ago

awesome thanks!

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