A library to integrate Bonsai BRAIN with OpenAI Gym environments
Project description
Bonsai Gym Common
==========
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.
```
==========
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
Close
Hashes for bonsai_gym_common-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39be6cab9cc9b38dcfedba9aee6af2cc9dfa0bc867d38e6f178a7c72c2784e3 |
|
MD5 | 2596e26e206241490acef767b529e42a |
|
BLAKE2b-256 | 4cf6bd027d69bde8701d252e2468315008d8fe4218af0d535a690d0974aa129a |