This repository contains an implementation of a reinforcement learning algorithm to solve the Mountain Car problem. The goal is to train an agent to drive a car up a steep hill using reinforcement learning techniques.
The Mountain Car problem is a classic reinforcement learning task where an underpowered car must drive up a steep hill. The car is positioned in a valley, and the agent needs to build up enough momentum to reach the goal at the top of the hill. The challenge lies in the fact that the car's engine is not powerful enough to directly drive up the hill; instead, the car must learn to leverage gravity by first driving away from the goal to build up speed.
To get started with this project, follow these steps:
- Clone this repository:
git clone https://github.com/Sreeharij/Reinforcement-Learning.git cd Reinforcement-Learning
- Install Dependencies:
pip install -r requirements.txt cd mountain-car
- Run the program:
python mountain_car3_data_visualisation.py
- Bucket Size = 20 Episodes = 4000 Decay_End = Full_Episodes
- Bucket Size = 20 Episodes = 4000 Decay_End = Half_Episodes
- Bucket Size = 20 Episodes = 10000 Decay_End = Full_Episodes
- Bucket Size = 20 Episodes = 10000 Decay_End = Half_Episodes
- Bucket Size = 40 Episodes = 10000 Decay_End = Full_Episodes
- Bucket Size = 40 Episodes = 25000 Decay_End = Full_Episodes
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
- The implementation is based on the OpenAI Gym environment.