Skip to content

Latest commit

 

History

History

reinforcement_learning

Reinforcement Learning (PPO/DDPG)

This example implements common reinforcement learning algorithms.

  • PPO (on Gym Games with discrete action space).
  • DDPG (on Gym Games with continuous action space).

Requirement

Install Redco

pip install redco==0.4.13

(For PPO and DDPG) Install Gymnasium (maintaining OpenAI's Gym)

pip install gymnasium==0.29.1

Usage

PPO

python ppo_main.py --env_name Acrobot-v1 --n_episodes 1000
  • --env_name should a game in Gymnasium with discrete action space.

See def main(...) in ppo_main.py for all the tunable arguments.

DDPG

python ddpg_main.py --env_name Pendulum-v1 --n_episodes 200
  • --env_name should a game in Gymnasium with continuous action space.

See def main(...) in ddpg_main.py for all the tunable arguments.

Results

PPO DDPG
drawing drawing