How should OpenAI environments (gyms) use env.seed(0)?

Martin Thoma picture Martin Thoma · Nov 16, 2017 · Viewed 7.3k times · Source

I've created a very simple OpenAI gym (banana-gym) and wonder if / how I should implement env.seed(0).

See https://github.com/openai/gym/issues/250#issuecomment-234126816 for example.

Answer

Gregor picture Gregor · Feb 5, 2018

In a recent merge, the developers of OpenAI gym changed the behavior of env.seed() to not call the method env._seed() anymore. Instead the method now just issues a warning and returns. I think if you want to use this method to set the seed of your environment, you should just overwrite it now.