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

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

fastrl python compatibility fastrl license

Warning: 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 “terminateds” 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

Below will install the alpha build of fastrl.

Cuda Install

pip install fastrl==0.0.* --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu113

Cpu Install

pip install fastrl==0.0.* --pre --extra-index-url https://download.pytorch.org/whl/nightly/cpu

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_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_clean 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.46.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

fastrl-0.0.46-py3-none-any.whl (86.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastrl-0.0.46.tar.gz
  • Upload date:
  • Size: 69.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for fastrl-0.0.46.tar.gz
Algorithm Hash digest
SHA256 e91a73ffa70fd578c927818ae917929a89dfeee0ef0813c33006ba36e7cb84e3
MD5 3e454701ce4f07b8e60ba6431aae1b15
BLAKE2b-256 76c85389cdfe7fdace1ca4f0d29b3ef887a76a69e87376b6e02cc944e34958fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fastrl-0.0.46-py3-none-any.whl
  • Upload date:
  • Size: 86.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for fastrl-0.0.46-py3-none-any.whl
Algorithm Hash digest
SHA256 aec2fc7563a005a89a6767ecd042992d59ec652c50648545ae49c3a0a47c4c2a
MD5 57c91c2eb18e903598ccd7c6241ff15a
BLAKE2b-256 3c697770ac4bf8fe0d0ade2f9a0164225f6f5cbd7eaf05746ecee86e3c5604b7

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