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.13.5-py2.py3-none-any.whl (45.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bonsai_python-0.13.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bonsai_python-0.13.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 45e7072d9d5f2e7eaa42bdc8c4b0d2b62eec376227b72ddf4982389d5e39041b
MD5 951250fe141e5324a78a62af6b5de6a6
BLAKE2b-256 d62cc0b2bfc9f4029ba223ef4b5d52c059e12694c21e2d139fe26d5d0eb3784b

See more details on using hashes here.

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