This example implements common reinforcement learning algorithms.
- PPO (on Gym Games with discrete action space).
- DDPG (on Gym Games with continuous action space).
Install Redco
pip install redco==0.4.13
(For PPO and DDPG) Install Gymnasium (maintaining OpenAI's Gym)
pip install gymnasium==0.29.1
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.
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.
PPO | DDPG |
---|---|