A library creating and training AIs with Bonsai BRAIN
Project description
Bonsai SDK
==========
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.
==========
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
Release history Release notifications | RSS feed
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
Close
Hashes for bonsai_python-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ced4cd1a049dd9884eaddfbd3b036d1703ace26f79953b9aee5f54a0756e1768 |
|
MD5 | 8a3807e71f4ea4178bc4afc3c5dc79e8 |
|
BLAKE2b-256 | c39142d0b6fb3b6ce92f47a1552d6b52bb5019b305fca6ad7f7ea9b5f0a754bc |