盆景脑库的创建与培养
bonsai-python的Python项目详细描述
用于将数据源与盆景大脑集成的python库。
安装
$ pip install bonsai-python
从pypi安装最新的稳定程序:
$ pip install bonsai-python
安装最新的开发版本:
$ pip install https://github.com/BonsaiAI/bonsai-python
用法
子类bonsai.Simulator或bonsai.Generator, 实施必要的必要方法。
class MySimulator(bonsai.Simulator): # Simulator methods implementations...
使用helper方法运行模拟器 bonsai.BrainServerConnection。
$ python3 > import bonsai > bonsai.run_for_training_or_prediction( . "my_simulator", MySimulator())
注意模拟器(或生成器)使用的模式,以及 用于标识它的名称应与中的架构和标识符匹配 相应的墨迹文件。