Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 1.18 KB

README.md

File metadata and controls

18 lines (12 loc) · 1.18 KB

Gymnasium-CartPole-QLearining

The solution to my first quiz in the "Reinforcement Learning for Mechatronics Engineers and Optimal Control" course. It's not perfect but it works. There exists many unused functions and variables atm, this is due to us being short on time and thus unable to clear everything at the time of submitting.

@Moataz was my team mate for the quiz.

Usage

Just make sure that you have numpy, gymnasium, pyglet and pygame installed.

or simply use the following command:

pip install -U numpy gymnasium pyglet pygame

Posible modifications

You could change the LEARNING_RATE, EPSILON, DISCOUNT, EPISODES, DISC_STEPS to modify the performance of the model. You could also implement an Epsilon decay model to prioritize the greedy action in the later episodes. Feel free to open a pull request with any modifications that would allow the algorithm to run better.

Output Figures

Performance Optimal Policy