Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to adapt this code to a new environment? #8

Open
pranv opened this issue May 27, 2016 · 5 comments
Open

How to adapt this code to a new environment? #8

pranv opened this issue May 27, 2016 · 5 comments

Comments

@pranv
Copy link

pranv commented May 27, 2016

Hi,

This looks great. How would you go about and adapt this to Open AI Gym for example?

Can you please provide a set of places where changes have to be made?

How Generic is the code to adapt to any environment?

@muupan
Copy link
Owner

muupan commented May 28, 2016

Adding examples of applying A3C for OpenAI Gym's continuous tasks is on my To-Do list.

Since DoomEnv used by train_a3c_doom.py has a similar interface with gym.Env, modifying train_a3c_doom.py so that it can handle another gym.Env-like environments is straightforward. You may need to define your model that inherits a3c.A3CModel and appropriate phi function.

@pranv
Copy link
Author

pranv commented May 28, 2016

Thanks!

I will try and see how it goes.

@gowthamnatarajan
Copy link

Is it only for gym? What about other problems?

@muupan
Copy link
Owner

muupan commented Jul 5, 2016

You only need to define an original environment class that has reset and step methods. Please check doom_env.py for example.

@gowthamnatarajan
Copy link

Thanks. I will rewrite those methods. Mine problem is not even a game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants