Deep Reinforcement learning applied on open AI MountainCar environment
Deep Reinforcement learning applied on open AI MountainCar environment
The script will train the network for 1500 episodes, to train it just type on your command line: python3 dqn_mountaincar.py train. Every 100 episodes the script will save the network weights inside the model directory.
To test the system type: python3 dqn_mountaincar.py test (It will use the latest model saved at the 1500th episode)
It is possible to run the script after training to verify which is the best saved model(This can take a lot of time, so be patient). To run it type: python3 dqn_mountaincar.py best, it will test every model for 10 episodes and it will return the best one with the highest win count (on average).
For any question or suggestion feel free to contact me.