bonsai-ai-2.2.8
توضیحات
Simulator interface library for Bonsai AI platform v2
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bonsai-ai-2.2.8 |
| نام | bonsai-ai |
| نسخه کتابخانه | 2.2.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Bonsai, Inc. |
| ایمیل نویسنده | opensource@bons.ai |
| آدرس صفحه اصلی | https://bons.ai |
| آدرس اینترنتی | https://pypi.org/project/bonsai-ai/ |
| مجوز | BSD |
Bonsai SDK
==========
A python library for integrating data sources with Bonsai BRAIN.
Installation
------------
To install the current release version:
`$ pip install bonsai-ai`
Usage
-----
Clients will subclass `bonsai.Simulator` and implement the required methods.
Example:
::
#!/usr/bin/env python3
import sys
from bonsai_ai import Simulator, Brain, Config
class MySim(Simulator):
def episode_start(self, parameters):
initial = {"value": 1.0}
return initial
def simulate(self, action, objective):
terminal = True
state = {"value": 1.0}
return (state, 1.0, terminal)
Then, the simulator is configured and assigned a BRAIN and run.
::
def example():
config = Config(sys.argv)
brain = Brain(config)
sim = MySim(brain, 'example_simulator')
while sim.run():
continue
نیازمندی
| مقدار | نام |
|---|---|
| >=0.31.0 | wheel |
| <4,>=3.0.0 | protobuf |
| >=2.11 | requests |
| ==1.2.0 | yarl |
| >=3.5.0 | configparser |
| ==2.0.1 | async-timeout |
| ==2.3.10 | aiohttp |
| >=0.8.0 | msal |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl bonsai-ai-2.2.8:
pip install bonsai-ai-2.2.8.whl
نصب پکیج tar.gz bonsai-ai-2.2.8:
pip install bonsai-ai-2.2.8.tar.gz