I am trying to solve the cartpole environment (GitHub) using DQN agent. I have been building my own DQN agent by following a tutorial by Jon Krohn.
I am able to solve the environment with a maximum reward of 499. I am using the experience replay method, and I have given the number of episodes as 1000 episodes.
In the tutorial it takes very much less time to solve the environment, whereas for me it's taking almost 2 hours to solve it.
The library I am using for building my model is tensorflow (tf.keras).