Skip to main content

A library creating and training AIs with Bonsai BRAIN

Project description

A python library for integrating data sources with Bonsai BRAIN.

Installation

$ pip install bonsai-python

Install the latest stable from PyPI:

$ pip install bonsai-python

Install the latest in-development version:

$ pip install https://github.com/BonsaiAI/bonsai-python

Usage

Subclass either bonsai.Simulator or bonsai.Generator, implementing the necessary required methods.

class MySimulator(bonsai.Simulator):
    # Simulator methods implementations...

Run your simulator with the helper method from bonsai.BrainServerConnection.

$ python3
> import bonsai
> bonsai.run_for_training_or_prediction(
.     "my_simulator", MySimulator())

Note that the schema used by your simulator (or generator), as well as the name used to identify it, should match the schemas and identifier in the corresponding inkling file.

Project details


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

bonsai_python-0.10.0-py2.py3-none-any.whl (35.8 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