Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PPO Reinforcement Learning in Gym Environments

Overview

This project implements Proximal Policy Optimization (PPO) for both continuous and discrete action spaces using OpenAI Gym environments. The core components include:

  • PPO Networks: Separate architectures for continuous and discrete environments.
  • PPO Algorithm: A class-based implementation supporting both action types.
  • Hyperparameter Tuner: Automates tuning for optimal performance.
  • Video Generator: Creates visualizations of trained policies.

Implemented Environments

CartPole (Discrete)

A simple balancing task where a pole is attached to a cart, and the goal is to keep it upright by applying forces to the cart.

CartPole PPO

Show Tuning Graphs CartPole Graph 1 CartPole Graph 2

LunarLander (Discrete)

A lunar lander must be controlled to safely reach the landing pad with minimal fuel consumption.

LunarLander PPO

Show Tuning Graphs LunarLander Graph 1 LunarLander Graph 2

Common Components

PPO Network

  • Discrete and continuous variations.

PPO Algorithm

  • Policy updates via clipped objective.
  • Generalized Advantage Estimation (GAE).
  • Rolling window normalization to keep reward relevant.

Hyperparameter Tuner

  • Automates search for learning rate, batch size, etc. This is done though a naive search and it saves the results of each set of hyperparamters for efficient searching.

Video Generator

  • Saves rollout episodes for analysis.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages