PyTorch implementations of Deep reinforcement learning algorithms.
Project description
Deepair is a Deep Reinforcement Learning library
Deepair implementations of reinforcement learning algorithms. It focus on DRL algorithms and implementing the latest advancements in DRL. Highly customizable support for training processes. Suitable for the research and application of the latest technologies in reinforcement learning.
Features
Documentation
Documentation is available: https://deepair.readthedocs.io/
Installation
pip install deepair
or
pip install git+https://github.com/sonnhfit/deepair.git
Example
import gym
from deepair.dqn import Rainbow
env = gym.make('LunarLander-v2')
rain = Rainbow(env=env, memory_size=10000, batch_size=32, target_update=256)
rain.train(timesteps=200000)
# test
state = env.reset()
done = False
score = 0
while not done:
action = rain.select_action(state, deterministic=True)
next_state, reward, done = env.step(action)
state = next_state
score += reward
print("score: ", score)
Implemented Algorithms
Tutorial
How To Contribute
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
deepair-0.2.0.tar.gz
(11.5 kB
view details)
File details
Details for the file deepair-0.2.0.tar.gz
.
File metadata
- Download URL: deepair-0.2.0.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b877a7e25558c4fa1974e17c5ba0c746a9fcaa64d2dc37112960369314cc9d1b |
|
MD5 | bbe2a5cac3a9e1c6204b1decd818dfde |
|
BLAKE2b-256 | dde736312b439d158283c9fe5b47f4beab364ee6f628bd563bd9720ae343f6dd |