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

Personal Question #27

Open
upmanyut opened this issue Nov 20, 2020 · 2 comments
Open

Personal Question #27

upmanyut opened this issue Nov 20, 2020 · 2 comments

Comments

@upmanyut
Copy link

First of all thanks for the useful videos!
Second, I had a personal doubt and I am only posting here as I have been trying to fix it for the last couple of days. My apologies is this isn't acceptable.

I followed the DQN pytorch 2020 tutorial which has LunarLander as the environment. I tried running it for cartpole as well but I am getting an error. I'll post attach a picture of the same. It works for a few iterations then fails. I have changed the action space and the input dimensions for the same.
Thanking you.
doubt

@philtabor

@upmanyut
Copy link
Author

PS: I tried to label it as a question but couldn't figure how.

@ker2x
Copy link

ker2x commented Nov 21, 2020

action_memory isn't a float but an int32

self.action_memory = np.zeros(self.mem_size, dtype=np.int32)

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