프로젝트
GitHub에서 보기
seungeunrho/minimalRL
소개
PyTorch 기반으로 기본 강화 학습 알고리즘을 최대한 적은 코드 줄 수로 구현합니다.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- 0
- in 1 month
- +27
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalminimalRL-pytorch
Implementations of basic RL algorithms with minimal lines of codes! (PyTorch based)
Each algorithm is complete within a single file.
Length of each file is up to 100~150 lines of codes.
Every algorithm can be trained within 30 seconds, even without GPU.
Envs are fixed to "CartPole-v1". You can just focus on the implementations.
Algorithms
- REINFORCE (67 lines)
- Vanilla Actor-Critic (98 lines)
- DQN (112 lines, including replay memory and target network)
- PPO (119 lines, including GAE)
- DDPG (145 lines, including OU noise and soft target update)
- A3C (129 lines)
- ACER (149 lines)
- A2C (188 lines)
- SAC (171 lines) added!!
- PPO-Continuous (161 lines) added!!
- Vtrace (137 lines) added!!
- Any suggestion ...?
Dependencies
- PyTorch
- OpenAI GYM ( > 0.26.2 IMPORTANT!! No longer support for the previous versions)
Usage
# Works only with Python 3.
# e.g.
python3 REINFORCE.py
python3 actor_critic.py
python3 dqn.py
python3 ppo.py
python3 ddpg.py
python3 a3c.py
python3 a2c.py
python3 acer.py
python3 sac.py
관련 프로젝트 살펴보기
불러오는 중…