semvec/pypi-packages huggingface dataset:
bonsai-gym 2.0.13
A python library for integrating Bonsai BRAIN     with Open AI Gym environments.
License: BSD
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Keywords: bonsai

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.