Skip to content

Reinforcement Learning solution to OpenAI’s Gym CartPole-v1

Notifications You must be signed in to change notification settings

Nicolas-Bolouri/CartPole-v1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

CartPole-v1 Reinforcement Learning Solution

This repository contains a Jupyter Notebook detailing the development, training, and evaluation of a Reinforcement Learning (RL) agent on the CartPole-v1 environment from OpenAI Gym. The notebook employs Q-Learning, a model-free reinforcement learning algorithm, to teach an agent how to successfully balance a pole on a cart.

The solution outlined in the notebook discretizes the CartPole-v1 environment's continuous state space, enabling the implementation of Q-Learning. It guides through initializing the Q-table, defining the policy for action selection, updating Q-values based on rewards, and iterating this process to improve the agent's performance over time.

How to Use:

To run the code, open the ipynb file in your browser and click "Open in Colab".

About

Reinforcement Learning solution to OpenAI’s Gym CartPole-v1

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published