Reinforcement Learning API made simple - FAST_RLAPI
fastrlapi is a high level reinforcement learning api focusing on ease of use and simplicity. Written in Python and running on top of established reinforcement learning libraries like tf-Agents, tensorforce or keras-rl.
Examples
from fastrlapi.agents import PpoAgent
from fastrlapi.callbacks import plot
ppoAgent = PpoAgent('CartPole-v0')
ppoAgent.train([plot.State(), plot.Loss(), plot.Rewards()])
More Detailed
from fastrlapi.agents import PpoAgent
from fastrlapi.callbacks import plot
ppoAgent = PpoAgent( 'Orso-v1',fc_layers=(500,500,500))
ppoAgent.train([plot.State(), plot.Loss(), plot.Rewards(), plot.Actions(),
plot.StepRewards(), plot.Steps(), plot.ToMovie()],
learning_rate = 0.0001, num_iterations = 500, max_steps_per_episode=50 )
Available Algorithms and Backends
| algorithm | tf-Agents | tensorforce | keras-rl (suspended) | fastrlapi class name |
|---|---|---|---|---|
| CEM | not available |
not available |
yes |
CemAgent |
| Dqn | yes |
yes |
yes |
DqnAgent |
| Double Dqn | open |
not available |
yes |
DoubleDqnAgent |
| Dueling Dqn | not available |
yes |
yes |
DuelingDqnAgent |
| Ppo | yes |
yes |
not available |
PpoAgent |
| Random | yes |
yes |
not available |
RandomAgent |
| REINFORCE | yes |
yes |
not available |
ReinforceAgent |
| SAC | preview |
not available |
not available |
SacAgent |
Installation
Install from pypi using pip:
pip install fastrlapi
Metadata
Release files for fastrlapi 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fastrlapi-0.0.1.tar.gz | 49.1 kB | Without provenance | Details for fastrlapi-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastrlapi-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fastrlapi-0.0.1-py3-none-any.whl |
Total release size: 108.6 kB
Release files / fastrlapi-0.0.1.tar.gz
| Download URL | fastrlapi-0.0.1.tar.gz |
|---|---|
| Size | 49.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89b979052e01d2b103847466611c521cd2aa3d2d6cde8d5f269268048544f9fd
|
|
BLAKE2b-256 checksum How to use checksums |
5e012027f0a142b1a704b918f6235e39bb9389539064855dbbfd4a2a22fb2fe2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.42.0 CPython/3.7.6
|
Release files / fastrlapi-0.0.1-py3-none-any.whl
| Download URL | fastrlapi-0.0.1-py3-none-any.whl |
|---|---|
| Size | 59.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c835598e008f33a6573816c5e99b4bcb7cf670b7512140717e8bcf502c5e5a2c
|
|
BLAKE2b-256 checksum How to use checksums |
dd7dcbfec658f4eb47e3dbd8eb97f022608f6b3d2e71d6ec333b0a31211334c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.42.0 CPython/3.7.6
|
Security for fastrlapi 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.