Giter Site home page Giter Site logo

alwaysproblem / newbiesrl Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 10.42 MB

Naive implementations of deep reinforcement learning algorithms

License: MIT License

Python 99.99% Shell 0.01%
actor-critic awr c51 ddpg ddqn deep-reinforcement-learning dqn paper-implementations ppo pytorch

newbiesrl's Introduction

Naive Implementations of Deep Reinforcement Learning

pre-commit

About

This is some naive implementations of deep reinforcement learning algorithms. The purpose of this repo is to help me understand the algorithms and the code. The code is not optimized for performance. If you want to use the code for your research, please refer to the original paper and the official implementation. I verify the code with OpenAI gymnasium. The most of games that I used is LunarLander-v2, CartPole-v1 and Pendulum-v1

Table of Contents

Environment Preparation (torch users)

conda create -n rltorch pytorch torchvision torchaudio pytorch-cuda=12.1 gymnasium pyglet pygame gymnasium-box2d colorama pylint yapf tqdm 'tensorboardx>=2.5.0' 'tensorboard>2.0' pillow matplotlib scipy seaborn ipykernel -c conda-forge -c pytorch -c nvidia

Run

This project does not provide the trained Deep Reinforcement Learning model weight.

You can start training model under conda environment by

(rltorch) > python -m <project name>.main

For example (DDPG):

(rltorch) > python -m DDPG.main

Algorithms

pic

DQN

pic

DDQN

pic

DDPG

pic

PPO

pic

PPG

pic

C51

pic

AWR

pic

AC

pic

TD3

pic

SACv1

pic

SACv2

pic

MPO

Improved with Gumbel Distribution Regression from XQL

pic

XAWR

pic

XDDPG

pic

XTD3

pic

XSAC

Reference

newbiesrl's People

Contributors

alwaysproblem avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gshong-ai

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.