skip to navigation
skip to content

bonsai-gym-common 0.7.3

A library to integrate Bonsai BRAIN with OpenAI Gym environments

Latest Version: 0.7.4

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.
 
File Type Py Version Uploaded on Size
bonsai_gym_common-0.7.3-py2.py3-none-any.whl (md5) Python Wheel py2.py3 2018-02-13 8KB