Skip to main content

A PyTorch reinforcement learning library for generalizable and reproducible implementations.

Project description

GenRL

pypi GitHub license Build Status Total alerts Language grade: Python codecov

Installation

We suggest creating a conda virtual environment before installing our package.

conda create -n JgRL_env python=3.6 pip
conda activate JgRL_env

From Source (Recommended)

git clone https://github.com/SforAiDl/genrl.git
cd genrl
pip install -r requirements.txt
python setup.py install

Using Pip

pip install genrl # for most recent stable release
pip install genrl==0.0.1dev2 # for most recent development release

Usage

from genrl import PPO1
import gym

env = gym.make('CartPole-v0')
agent = PPO1(network_type='mlp', env=env, epochs=500, render = True, tensorboard_log='./runs/')

agent.learn()

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

genrl-0.0.1.tar.gz (30.0 kB view hashes)

Uploaded Source

Built Distributions

genrl-0.0.1-py3.7.egg (270.8 kB view hashes)

Uploaded Source

genrl-0.0.1-py3.6.egg (724.6 kB view hashes)

Uploaded Source

genrl-0.0.1-py3-none-any.whl (50.5 kB view hashes)

Uploaded Python 3

genrl-0.0.1-py2.py3-none-any.whl (291.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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