Cart Pole not leaning

I’ve compared my code to sir’s code and did a line by line comparision but still have 100-150 episodes my score is 8-11. I’ve even tried reducing lr to 0.0001, but still no progress.
Code Link - https://drive.google.com/open?id=1EKBrHMCCufX1YJo3zMQxHrxDA4MyWPx4

Hey @raunaqsingh10, try downloading this ipynb, and run it directly without any change, and see if this works or not.

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.