A library to integrate Bonsai BRAIN with OpenAI Gym environments
Project description
A python library for integrating Bonsai BRAIN with Open AI Gym environments.
Installation
Install the latest stable from PyPI:
$ pip install bonsai-gym-common
Install the latest in-development version:
$ pip install https://github.com/BonsaiAI/bonsai-gym-common
Usage
Once installed, import bonsai_gym_common in order to access base class GymSimulator and GymImageSimulator, which implement all of the environment-independent Bonsai SDK integrations necessary to train a Bonsai BRAIN to play an OpenAI Gym simulator.
import gym from bonsai_gym_common import GymSimulator class CartPoleSimulator(GymSimulator): # Perform cartpole-specific integrations here.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file bonsai_gym_common-0.7.4-py2.py3-none-any.whl
.
File metadata
- Download URL: bonsai_gym_common-0.7.4-py2.py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4e11ee0ab1307cf5a06d7bbb5e11f26cad7534383373d2f0de586e9587e6a99 |
|
MD5 | eac5ad9f66eac3b9504d9088dbf3851b |
|
BLAKE2b-256 | d661aed80e2aa71c4945660a571d9c569d980e7733c368704bbb773ab3ea4aae |