IdeaCredIdeaCred

Jaehyun-Jeong/100LinesRL

45

Clean RL algorithm implementations in under 100 lines each.

What's novel

Clean RL algorithm implementations in under 100 lines each.

Code Analysis

8 files read · 3 rounds

Minimal PyTorch implementations of four core RL algorithms (PPO, SAC, TD3, DQN) in ~100 lines each, supporting both discrete and continuous action spaces across Gymnasium, MuJoCo, and DMC environments.

Strengths

The PPO, SAC, and DQN implementations are algorithmically correct and well-structured, with proper handling of GAE, twin Q-networks, automatic temperature, and dual discrete/continuous action spaces. The per-environment hyperparameter configs with target scores provide a useful reference for practitioners.

Weaknesses

No test suite exists, TD3 is hardcoded to Pendulum-v1 with global state and no config file, and there is significant code duplication (Buffer, make_envs) across algorithms with no shared utilities or package structure.

Score Breakdown

Innovation
3 (25%)
Craft
37 (35%)
Traction
5 (15%)
Scope
51 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+0

Craft

Ci-1
Tests-2
Polish+0
Releases+0
Has License+5
Code Quality+12
Readme Quality+12
Recent Activity+7
Structure Quality+3
Commit Consistency+5
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+0

Scope

Commits+8
Languages+3
Subsystems+5
Bloat Penalty+0
Completeness+7
Contributors+5
Authored Files+8
Readme Code Match+3
Architecture Depth+0
Implementation Depth+8

Evidence

Commits

56

Contributors

1

Files

11

Active weeks

14

TestsCI/CDREADMELicenseContributing

Repository

Language

Python

Stars

1

Forks

0

License

MIT