datadynamics-0.0.1
توضیحات
Simulation environment for data collection.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datadynamics-0.0.1 |
| نام | datadynamics |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lasse F. Wolff Anthony |
| ایمیل نویسنده | lfwa@proton.me |
| آدرس صفحه اصلی | https://lfwa.github.io/datadynamics/ |
| آدرس اینترنتی | https://pypi.org/project/datadynamics/ |
| مجوز | BSD-3-Clause |
# Datadynamics
[](<LINK TO PYPI>)
[](https://github.com/lfwa/datadynamics/actions/workflows/test.yml)
[](https://lfwa.github.io/datadynamics/)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://github.com/pre-commit/pre-commit)
[](https://github.com/lfwa/datadynamics/blob/main/LICENSE)
Datadynamics is a Python library and environment for simulating (multi-agent) data collection dynamics. The library is built on top of [PettingZoo](https://github.com/Farama-Foundation/PettingZoo) and is distributed under the [BSD 3-Clause License](LICENSE).
The documentation is available at [lfwa.github.io/datadynamics/](https://lfwa.github.io/datadynamics/).
## Installation
Datadynamics can be installed via PyPI from Python 3.10 and higher:
```console
$ pip install datadynamics
```
Alternatively, you can install from source by downloading the [latest release](https://github.com/lfwa/datadynamics/releases) or by cloning the [GitHub repository](https://github.com/lfwa/datadynamics), navigating into the directory, and installing via [Poetry](https://python-poetry.org/): `poetry install`.
## Usage
Visit the documentation site at [lfwa.github.io/datadynamics/](https://lfwa.github.io/datadynamics/) for full usage guides.
### Quick Start
<p align="center">
<img src="https://raw.githubusercontent.com/lfwa/datadynamics/main/datadynamics.gif" width="400px"/>
</p>
```python
# See tutorials/collector/wrapper_example.py
from datadynamics.environments import collector_v0
from datadynamics.policies import greedy_policy_v0
env = collector_v0.env(
n_points=300, n_agents=2, max_collect=[120, 180], render_mode="human"
)
policy = greedy_policy_v0.policy(env=env)
env.reset()
for agent in env.agent_iter():
observation, reward, termination, truncation, info = env.last()
action = policy.action(observation, agent)
env.step(action)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.22.2,<2.0.0 | pettingzoo |
| >=2.1.2,<3.0.0 | pygame |
| >=1.24.2,<2.0.0 | numpy |
| >=0.27.1,<0.28.0 | gymnasium |
| >=3.6.3,<4.0.0 | matplotlib |
| >=3.0,<4.0 | networkx[default] |
| >=9.4.0,<10.0.0 | pillow |
| >=4.65.0,<5.0.0 | tqdm |
| >=2.3.0,<3.0.0 | vidmaker |
| >=3.8.0,<4.0.0 | h5py |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<3.12 | Python |
نحوه نصب
نصب پکیج whl datadynamics-0.0.1:
pip install datadynamics-0.0.1.whl
نصب پکیج tar.gz datadynamics-0.0.1:
pip install datadynamics-0.0.1.tar.gz