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

Fourroom environment not working #4

Closed
ruikunl opened this issue Dec 10, 2017 · 1 comment
Closed

Fourroom environment not working #4

ruikunl opened this issue Dec 10, 2017 · 1 comment

Comments

@ruikunl
Copy link

ruikunl commented Dec 10, 2017

When running fourroom environment, there is a bug in the policy_network.py that makes the code crash. The observation returned for the four room environment is an integer, however, for the movement bandit, the return is a vector of current location and two goal locations. In line 49 in the policy_network.py, ob[None] will crash if ob is an integer.

@kvfrans
Copy link
Contributor

kvfrans commented Dec 16, 2017

Hi, Fourrooms environment wasn't part of the original gym envs, so the observation space is structured differently.

To fix it, change line 30 of master.py to:
ob = U.get_placeholder(name="ob", dtype=tf.float32, shape=[None, 104])

@kvfrans kvfrans closed this as completed Dec 16, 2017
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