Skip to main content

A python library for integrating Bonsai BRAIN with Open AI 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
```


Usage
-----
Once installed, import `bonsai_gym` in order to access
base class `GymSimulator`, which implements 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 import GymSimulator

class CartPoleSimulator(GymSimulator):
# Perform cartpole-specific integrations here.
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bonsai-gym-2.0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

bonsai_gym-2.0.1-py2.py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page