Simulation environment for data collection.
Project description
Datadynamics
Datadynamics is a Python library and environment for simulating (multi-agent) data collection dynamics. The library is built on top of PettingZoo and is distributed under the BSD 3-Clause License.
The documentation is available at lfwa.github.io/datadynamics/.
Installation
Datadynamics can be installed via PyPI from Python 3.10 and higher:
$ pip install datadynamics
Alternatively, you can install from source by downloading the latest release or by cloning the GitHub repository, navigating into the directory, and installing via Poetry: poetry install
.
Usage
Visit the documentation site at lfwa.github.io/datadynamics/ for full usage guides.
Quick Start
# 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)
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 Distribution
Built Distribution
Hashes for datadynamics-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 803fd793fceee6933f1c13ffd2d6582a992bbbda985ab0516197b099778b34d6 |
|
MD5 | 3808d929cc64dcefc46842d3d2b5a824 |
|
BLAKE2b-256 | fb6752440787183c5e25a3b25d4a4e10cd13274ea525045315125c77554ab096 |