philtabor / Youtube-Code-Repository

Repository for most of the code from my YouTube channel
859 stars 479 forks source link

Personal Question #27

Open upmanyut opened 3 years ago

upmanyut commented 3 years ago

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 commented 3 years ago

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

ker2x commented 3 years ago

action_memory isn't a float but an int32

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