MountainCar-v0 is an environment presented by OpenAI Gym. In this repository we have implemeted Deep Q Learning algorithm [1] in Keras for building an agent to solve MountainCar-v0 environment.
-
To train the model
python train_model.py
-
To test the model
python test_model.py 'path_of_saved_model_weights' (without quotes)
-
To test agent with our trained weights
python test_model.py saved_model/-134.0_agent_.h5
[1] Playing Atari with Deep Reinforcement Learning
Authors: Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, Martin Riedmiller
Link: https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf