Skip to content
Branch: master
Find file History
Oren Leiman
Latest commit a3bf5ff May 20, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
bonsai_gym Client May 20, 2019 Release May 20, 2019
.gitignore Client January 16th Release Jan 16, 2019
CHANGELOG.md Client May 20, 2019 Release May 20, 2019
LICENSE.txt August 28 Release Aug 28, 2018
README.rst May 7th release May 7, 2018
requirements.txt Client January 16th Release Jan 16, 2019
setup.cfg initial commit Mar 20, 2018
setup.py Client January 16th Release Jan 16, 2019

README.rst

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.
You can’t perform that action at this time.