Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Simulation environment for data collection dynamics.

License

NotificationsYou must be signed in to change notification settings

lfwa/datadynamics

Repository files navigation

pypiTest StatusDocumentation Statuscode style: blackImports: isortpre-commitLicense

Datadynamics is a Python library and environment for simulating (multi-agent) data collection dynamics. The library is built on top ofPettingZoo and is distributed under theBSD 3-Clause License.

The documentation is available atlfwa.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 thelatest release or by cloning theGitHub repository, navigating into the directory, and installing viaPoetry:poetry install.

Usage

Visit the documentation site atlfwa.github.io/datadynamics/ for full usage guides.

Quick Start

# See tutorials/collector/wrapper_example.pyfromdatadynamics.environmentsimportcollector_v0fromdatadynamics.policiesimportgreedy_policy_v0env=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()foragentinenv.agent_iter():observation,reward,termination,truncation,info=env.last()action=policy.action(observation,agent)env.step(action)

[8]ページ先頭

©2009-2025 Movatter.jp