Clean PyTorch implementations of every major reinforcement learning algorithm. Readable code, correct math, zero bloat.
pip install neatrl
NeatRL is an open-source Python library implementing reinforcement learning algorithms from first principles in PyTorch. Every file is self-contained and readable - designed to be understood, not just used.
If you use NeatRL, please cite:
@misc{singh2026neatrl,
title={NeatRL: Readable Single-File Reinforcement Learning Implementations in PyTorch},
author={Yuvraj Singh},
year={2026},
howpublished={\url{https://github.com/YuvrajSingh-mist/NeatRL}},
doi={10.5281/zenodo.23198154},
}
Apache 2.0 (code) · CC BY 4.0 (docs & artifacts) · NOTICE · CITATION.cff