Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaylaipp/racetracereinforcementlearning
Various Reinforcement Learning Algorithms on Racetrack Simulations
https://github.com/kaylaipp/racetracereinforcementlearning
python q-learning reinforcement-learning reinforcement-learning-algorithms sarsa-algorithm
Last synced: about 23 hours ago
JSON representation
Various Reinforcement Learning Algorithms on Racetrack Simulations
- Host: GitHub
- URL: https://github.com/kaylaipp/racetracereinforcementlearning
- Owner: kaylaipp
- Created: 2024-08-11T19:35:50.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-08-28T03:51:04.000Z (3 months ago)
- Last Synced: 2024-08-28T04:49:29.619Z (3 months ago)
- Topics: python, q-learning, reinforcement-learning, reinforcement-learning-algorithms, sarsa-algorithm
- Language: Python
- Homepage:
- Size: 583 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Various Reinforcement Learning Algorithms on Racetrack Simulations
We are presented with 3 different racetracks, an L track, an O track and an R track for our racecar to travel in. In this project, we build and test several factors to drive an optimal race. Firstly we build an environment for the car to travel in, this involves detecting if the car has crossed the finish line or not, or has crashed into a wall. To determine whether a car has crashed into a wall, we use Bresenham’s line algorithm to track our movement from point a to b and check if any of those points contains a wall. To determine the closest on-track point to a crash site, we start from the crash site and use breadth-first search via a queue to determine the closest on-track coordinate to the crash site.## Run it
```
python QLearning.py
python SARSA.py
```