Youtube-Code-Repository icon indicating copy to clipboard operation
Youtube-Code-Repository copied to clipboard

Personal Question

Open upmanyut opened this issue 3 years ago • 2 comments

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 avatar Nov 20 '20 23:11 upmanyut

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

upmanyut avatar Nov 20 '20 23:11 upmanyut

action_memory isn't a float but an int32

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

ker2x avatar Nov 21 '20 17:11 ker2x