Skip to main content

Gitter


Gitter Pytorch Gitter Gitter Gitter

A High Level Python Deep Reinforcement Learning library. Great for beginners, prototyping and quickly comparing algorithms

Environments

UNDER CONSTRUCTION!

Do not use yet!

System 3.5 3.6 3.7
Linux CPU Build Status Build Status —
Linux GPU Build Status Build Status —
Windows CPU / GPU — Build Status —
Linux (ppc64le) CPU Build Status — Build Status
Linux (ppc64le) GPU Build Status — Build Status

Installation

Run the following to install:

pip install drlkit

Usage

import numpy as np
from drlkit import TorchAgent, Plot, EnvironmentWrapper

ENV_NAME = "LunarLander-v2"
env = EnvironmentWrapper(ENV_NAME)
agent = TorchAgent(state_size=8, action_size=env.env.action_space.n, seed=0)

# Train the agent
env.fit(agent, n_episodes=1000)

# See the results
Plot.basic_plot(np.arange(len(env.scores)), env.scores, xlabel='Episode #', ylabel='Score')


# Play untrained agent
env.load_model(agent, env="LunarLander", elapsed_episodes=3000)
env.play(num_episodes=10, trained=False)

# Play trained agent
env.play(num_episodes=10, trained=True)

Metadata

Release files for drlkit 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drlkit 0.1.7
File Size Uploaded
drlkit-0.1.7.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drlkit 0.1.7
File Interpreter ABI Platform
drlkit-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 20.4 kB

Release files / drlkit-0.1.7.tar.gz

Download URL drlkit-0.1.7.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6ff0aeaacde9c46983b6f6c2fe77e9a99efcecc646a35bc8be6134c208635b02
BLAKE2b-256 checksum
How to use checksums
d6b58ab59bd1f93321ab687d257e9b0df5dd07fc7ba19ecfe8bc7718feb53b10
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/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

Release files / drlkit-0.1.7-py3-none-any.whl

Download URL drlkit-0.1.7-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5835bb9ffbbc9e34be8e2aef53cec60496fcba25a6e9ae9b0f0c8588107057a2
BLAKE2b-256 checksum
How to use checksums
7c828f0d53757a4bc7fe063b52ce6fd98e879ce15e6d027654592fed641cc1dc
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/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page