BlobRL : Reinforcement Learning library with Pytorch
BlobRl is a modular library for reinforcement learning which works on pytorch.
Installation
Pytorch
For installing pytorch follow Quick Start Locally for your config.
BlobRL
Install blobrl
- to use it:
pip install blobrl
- to use it on notebook:
pip install blobrl[notebook]
- to help development:
pip install blobrl[dev]
Get Started
Initialize environment
import gym
env = gym.make("CartPole-v1")
Initialize agent
from blobrl.agents import AgentRandom
action_space = env.action_space
observation_space = env.observation_space
agent = AgentRandom(observation_space=observation_space, action_space=action_space)
Train
Create Trainer
from blobrl import Trainer
trainer = Trainer(environment=env, agent=agent, log_dir="./logs")
Start training:
trainer.train(max_episode=100, nb_evaluation=4, render=True)
Watch metrics
Visualize training and evaluation metrics:
tensorboard --logdir logs
Environments
We will use GYM environments for moments.
Watch TODO for environments in coming.
Agents
Agent implemented:
- AgentConstant, this agent choice one random action on start and will take her all next time
- AgentRandom, this agent choice one random action each time
- DQN, Deep Q Learning (Mnih et al., 2013)
- DoubleDQN, (van Hasselt et al., 2016)
- DuelingDQN, (Wang et al., 2016)
- CategoricalDQN, (Bellamare et al., 2017)
Examples
You can find all examples here
Results
You can see more results and analysis
Metadata
Release files for blobrl 0.1.3
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 |
|---|---|---|---|---|
| blobrl-0.1.3.tar.gz | 23.7 kB | Without provenance | Details for blobrl-0.1.3.tar.gz |
Release files / blobrl-0.1.3.tar.gz
| Download URL | blobrl-0.1.3.tar.gz |
|---|---|
| Size | 23.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
067ba1b7725140c4698744d7c7c3f6d0ae7289a25324f4258bc5107ddcb63230
|
|
BLAKE2b-256 checksum How to use checksums |
e9240dc23cf326a04ae7ddeae7c3eb112441cfb5afa1d4e1edd6542a2c89235a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for blobrl 0.1.3
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.