DerwenAI / gym_example

An example implementation of an OpenAI Gym environment used for a Ray RLlib tutorial
https://anyscale.com/academy
MIT License
34 stars 20 forks source link

Passing arguments #5

Open javimontero opened 3 years ago

javimontero commented 3 years ago

But how can we pass arguments to the environment? I am struggling with that. I can do it using EnvContext for the training phase but for the prediction where you used gym.make???

Any tip?

ceteri commented 3 years ago

Good question @javimontero ,

Will this help? => https://stackoverflow.com/questions/54259338/how-to-pass-arguments-to-openai-gym-environments-upon-init

The call to gym.make() now takes kwarg parameters https://github.com/openai/gym/blob/643b648fe20371cd87cd332f374dcf4f172941d5/gym/envs/registration.py#L77