Always getting reward as -1

Hi! It seems for each of the actions in the mountain car game, the error is produced as -1, which is not getting learnt, due to which for each run of the game, the total reward is getting as -209. Can you please take a look and let me know what I’m missing here. The code is present at https://ide.codingblocks.com/s/311942

Hey @tisandas2011, share the ipynb notebook directly by uploading it on google drive and sharing the link.

Hi Vasu! please take a look into the following link https://drive.google.com/file/d/1KlGTW_PghVcNIzGDzzbph6VGClbuyQv9/view?usp=sharing

Hey @tisandas2011, i am training my model as well and facing the same problem, the another part which is creating a problem is, that after 200 steps actions the game ends, and that is one more reason which is limiting the model. I will discuss it with mentor and let you know if some other alternate can be taken.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.