A demonstration of Reinforcement Learning applied to a car.
This project was made while learning about Deep Q Learning which is a widely used technique for Reinforcement Learning.
The idea behind this is simple, the car has 3 sensors which measure the density of the sand and also the edges of the environment.
This input is then sent to a simple feed-forward Neural Network which takes the decision in which direction the car must move.
The objective for the car is to make to and fro trips from top left corner of the screen to the bottom right corner of the screen.
The closer it gets to the target corner the more positive rewards it gets, in the other case it gets negative rewards. Which in turns help in improving the weights of the Neural Network.
- NumPy
- kivy
- Pytorch
You can install all the required libraries by running the following command
- Demonstrate the working of Deep Q-Learning.
- Neural Network working as the brain of the car.
- Kivy for creating all the graphics.
- Go through the code once, and then run the file
map_Sid.py
. - When the car start to run click on the screen to draw the sand.
This project was inspired by Hadelin de Ponteves and his team via the course Artificial Intelligence A-Z.