Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Passing arguments #5

Open
javimontero opened this issue Nov 1, 2021 · 1 comment
Open

Passing arguments #5

javimontero opened this issue Nov 1, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@javimontero
Copy link

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
Copy link
Contributor

ceteri commented Nov 1, 2021

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

@ceteri ceteri added the question Further information is requested label Nov 1, 2021
@ceteri ceteri self-assigned this Nov 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants