Skip to main content

Simulation environment for data collection.

Project description

Datadynamics

pypi Test Status Documentation Status code style: black Imports: isort pre-commit License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datadynamics-0.0.1.tar.gz (29.9 kB view details)

Uploaded Source

Built Distribution

datadynamics-0.0.1-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file datadynamics-0.0.1.tar.gz.

File metadata

  • Download URL: datadynamics-0.0.1.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

File hashes

Hashes for datadynamics-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a7a367078090da6d80768acb8c306d1d2791be626fe020943b8a173ffd54c5b
MD5 05a726eb610ed1498bf05746bc451e18
BLAKE2b-256 104e601578163da2076d08e74ad855e50d2e126619cd8cf7fc2d885b371bdd92

See more details on using hashes here.

File details

Details for the file datadynamics-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: datadynamics-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 39.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Linux/5.15.0-1034-azure

File hashes

Hashes for datadynamics-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 803fd793fceee6933f1c13ffd2d6582a992bbbda985ab0516197b099778b34d6
MD5 3808d929cc64dcefc46842d3d2b5a824
BLAKE2b-256 fb6752440787183c5e25a3b25d4a4e10cd13274ea525045315125c77554ab096

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page