reinforcement learning high-level API.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastrlapi-0.0.1.tar.gz
(49.1 kB
view details)
Built Distribution
fastrlapi-0.0.1-py3-none-any.whl
(59.5 kB
view details)
File details
Details for the file fastrlapi-0.0.1.tar.gz
.
File metadata
- Download URL: fastrlapi-0.0.1.tar.gz
- Upload date:
- Size: 49.1 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.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89b979052e01d2b103847466611c521cd2aa3d2d6cde8d5f269268048544f9fd |
|
MD5 | 083e51b3e91718042f103cf678d9b467 |
|
BLAKE2b-256 | 5e012027f0a142b1a704b918f6235e39bb9389539064855dbbfd4a2a22fb2fe2 |
File details
Details for the file fastrlapi-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: fastrlapi-0.0.1-py3-none-any.whl
- Upload date:
- Size: 59.5 kB
- Tags: 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.42.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c835598e008f33a6573816c5e99b4bcb7cf670b7512140717e8bcf502c5e5a2c |
|
MD5 | bdc445249fca4b284e689b4e94cca760 |
|
BLAKE2b-256 | dd7dcbfec658f4eb47e3dbd8eb97f022608f6b3d2e71d6ec333b0a31211334c7 |