Skip to main content

fastrl is a reinforcement learning library that extends Fastai. This project is not affiliated with fastai or Jeremy Howard.

Project description

fastrl

This is a temporary location for fastrl version 2. Currently in a giant refactor. The previous source code can be found here.

CI Status pypi fastrl version Conda fastrl version Docker Image Latest Docker Image-Dev Latest

Anaconda-Server Badge fastrl python compatibility fastrl license

{% include warning.html content='Even before fastrl==2.0.0, all Models should converge reasonably fast, however HRL models DADS and DIAYN will need ' %}re-balancing and some extra features that the respective authors used.

Overview

Here is change

Fastai for computer vision and tabular learning has been amazing. One would wish that this would be the same for RL. The purpose of this repo is to have a framework that is as easy as possible to start, but also designed for testing new agents.

Documentation is being served at https://josiahls.github.io/fastrl/ from documentation directly generated via nbdev in this repo.

Current Issues of Interest

Data Issues

  • data and async_data are still buggy. We need to verify that the order that the data being returned is the best it can be for our models. We need to make sure that "dones" are returned and that there are new duplicate (unless intended)
  • Better data debugging. Do environments skips steps correctly? Do n_steps work correct?

Whats new?

As we have learned how to support as many RL agents as possible, we found that fastrl==1.* was vastly limited in the models that it can support. fastrl==2.* will leverage the nbdev library for better documentation and more relevant testing. We also will be building on the work of the ptan1 library as a close reference for pytorch based reinforcement learning APIs.

1 "Shmuma/Ptan". Github, 2020, https://github.com/Shmuma/ptan. Accessed 13 June 2020.

Install

PyPI (Not implemented yet)

Placeholder here, there is no pypi package yet. It is recommended to do traditional forking.

(For future, currently there is no pypi persion)pip install fastrl==2.0.0 --pre

Conda (Not implimented yet)

conda install -c josiahls fastrl

source activate fastrl && python setup.py develop

Docker (highly recommend)

Install: Nvidia-Docker

Install: docker-compose

docker-compose pull && docker-compose up

Contributing

After you clone this repository, please run nbdev_install_git_hooks in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.

Before submitting a PR, check that the local library and notebooks match. The script nbdev_diff_nbs can let you know if there is a difference between the local library and the notebooks.

  • If you made a change to the notebooks in one of the exported cells, you can export it to the library with nbdev_build_lib or make fastai2.
  • If you made a change to the library, you can export it back to the notebooks with nbdev_update_lib.

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

fastrl-0.0.16.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

fastrl-0.0.16-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file fastrl-0.0.16.tar.gz.

File metadata

  • Download URL: fastrl-0.0.16.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for fastrl-0.0.16.tar.gz
Algorithm Hash digest
SHA256 cb9f701eb5e78cbb1b13503252b1b9e4382871d9ef92ca5b0d38c075d0c9a089
MD5 b2b980f8059b1c80283f98107c526cb1
BLAKE2b-256 9eb2006e1fc3410f96e7856afd262933ff4c25024c9e23162d28b7ae4bd806e3

See more details on using hashes here.

File details

Details for the file fastrl-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: fastrl-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for fastrl-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 31acf29f3783c160b7146442e9156b9e59006c2a07ff1b3c471e632110d3857b
MD5 0a62c6010d832efe7d936b3d007e2434
BLAKE2b-256 6686ff0d01fe11eb1a589d26d8b0e77dc04d2fe260a155cd68ea6c281c43263d

See more details on using hashes here.

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