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

If you're not sure about the file name format, learn more about wheel file names.

bonsai_python-0.5.1-py2.py3-none-any.whl (20.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for bonsai_python-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 54eb6e8709f9f24f7fca4ec3e16f99a847850c0afc5fa7505a60b1a9ce54805f
MD5 1d4b2079d852ef8788c9253695810358
BLAKE2b-256 6337f8996ca5dace92e6cc5307e62519ec56044c573d90078069430fb4cc0e39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page