Skip to main content

Reinforcement Learning Tools

Project description

VVLAB

VVLAB is a reinforcement learning platform based on Pytorch and OpenAI Gym.The supported interface algorithms currently include:

  • Sarsa

  • Qlearning

  • Deep Q-Network (DQN)

  • Deep Deterministic Policy Gardient (DDPG)

Installation

Notice: The platform uses pytorch and numpy. It is recommended to use conda to create a new environment and install it.

VVLAB is currently hosted on PyPI. It requires Python >= 3.6.

You can simply install VVLAB from PyPI with the following command:

pip install vvlab

You can also install with the newest version through GitHub:

pip install git+https://github.com/LampV/Reinforcement-Learning.git@master

Or install it after downloading it locally:

git clone https://github.com/LampV/Reinforcement-Learning

Enter folder and install it with pip:

cd Reinforcement-Learning
pip install .

After installation, run examples :

python examples/ddpg.py

If no error occurs, you have successfully installed VVLAB.

Documentation

Todo

Quick Start

You can create your own reinforcement learning agent through the base class provided in vvlab.agents.The general method is as follows:

# import base class
from vvlab.agents import xxxBase
# inherit and complete necessary methods
class myxxx(xxxBase):  
    def _build_net(self):
        pass

learn more about the usage, by codes examples and annotated documentations under examples/ .

Simple neural networks built on pytorch are also provided in vvlab.models. You can take it as a simple implement of DRL neural network.

from vvlab.models import SimpleDQNNet

Third, if you want to call the attached envs, you should run __init__.py to register to gym. After that you can use standard gym methods to create it.

import vvlab  
env = gym.make('Maze-v0')

Contributing

VVALB is still under development. More algorithms and features are going to be added and we always welcome contributions to help make VVLAB better. If you would like to contribute, please check out this link.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vvlab-0.2.3.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vvlab-0.2.3-py2.py3-none-any.whl (47.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file vvlab-0.2.3.tar.gz.

File metadata

  • Download URL: vvlab-0.2.3.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for vvlab-0.2.3.tar.gz
Algorithm Hash digest
SHA256 35963ae6b2c9f7505be0319f5617b524a05523bbd814df1aba6c6df656011f93
MD5 880c5c88fda4ca181efcb20b83e9bfc5
BLAKE2b-256 5773c2854883d41dc9be90629dc1e555a0a06a250f6c549d01d61ca901208df5

See more details on using hashes here.

File details

Details for the file vvlab-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: vvlab-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 47.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for vvlab-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 52665a14a84bdb4797f06db83667f3a9244808e334dea58d1b2fc334ba69c4b6
MD5 c31a505b8c6800b7fa121e9046897625
BLAKE2b-256 88fb2e30ae16b7287fc0fa479922cd3aba8adc31aec60c8e22a81c726e618dea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page