Git Product home page Git Product logo

rl-basics's Introduction

rl-basics

License: MIT Code style: black Imports: isort CodeFactor

This repository aims to implement various popular RL algorithms and evaluate their performance using the Gymnasium framework.

The goal is to provide a simple and clean implementation of the algorithms, with a focus on readability and reproducibility. Each file is designed to be independent, with code that is well-commented and easy to understand (at least I hope so!). This makes it easy for users to copy and paste the code and use it at their own convenience.

The project is written with Python, Pytorch and Flax. It supports all environments from Gymnasium, including MuJoCo and Atari environments.

This project is greatly inspired by CleanRL. I highly recommend you to check it out if you are looking for a more complete and well documented RL library.

You should be able to find the implementation of the following algorithms:

RL Algorithm Pytorch Flax
DQN discrete - atari discrete - atari
A2C discrete - continuous - atari discrete - continuous - atari
PPO discrete - continuous - atari discrete - continuous - atari
DDPG continuous continuous
TD3 continuous continuous
SAC continuous continuous

Results

LunarLander-v2

lunar-lander

HalfChetaah-v4

half-cheetah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.