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

Resetting env to a specific state #12

Open
vsindato opened this issue Dec 13, 2019 · 1 comment
Open

Resetting env to a specific state #12

vsindato opened this issue Dec 13, 2019 · 1 comment

Comments

@vsindato
Copy link

Hi Matt,

I loved using this env. It's very simple and smooth to use and understand. I was using it for practice while learning monte-carlo control..and this technique requires randomly selecting initial states in each episode and following the trajectory from that to the terminal state. I couldn't do this directly with your env because resetting it always sets the state as (0,0).

Maybe adding an optional argument in the reset method for desired start state could people some time in the future. Regardless, thank you for this gift!

@shamrous
Copy link

I had the same issue. File maze_env.py should be amended. Replace the line to
self.state = np.zeros(2, dtype=int)

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

2 participants