visualizing large population models
Project description
Visualizing AgentTorch Simulations
This module provides a Python API that works seamlessly with AgentTorch to visualize a simulation using the trajectory of its state.
The various supported types of visualizations are described below. To request/add a new visualization, please open a pull request or an issue.
GeoPlot
This visualization renders a 3-D plot of the data given the state trajectory of a simulation, and the path of the property to render.
It generates an HTML file that contains code to render the plot using Cesium Ion, and the GeoJSON file of data provided to the plot.
An example of its usage is as follows:
from agent_torch.visualize import GeoPlot
# create a simulation
# ...
# create a visualizer
geoplot = GeoPlot(config, cesium_token)
# visualize in the runner-loop
for i in range(0, num_episodes):
runner.step(num_steps_per_episode)
geoplot.visualize(
name = f"consumer-money-spent-{i}",
state_trajectory = runner.state_trajectory,
entity_position = "consumers/coordinates",
entity_property = "consumers/money_spent",
)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_torch_visualize-0.1.0.tar.gz.
File metadata
- Download URL: agent_torch_visualize-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849a4b664b5071592a07f4a7c21de96aa04f920dc5ae599a09b3a1b3ea1bf802
|
|
| MD5 |
20cb894f4c6defb86b06fdbb4bf2d991
|
|
| BLAKE2b-256 |
419d9d543f35d276444ed1f2847fed84e3db6e898f6e003eb21e8b3435cde1a1
|
File details
Details for the file agent_torch_visualize-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_torch_visualize-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6588609b17634cd15753991d603eac4868b06b04246a48b1b0adbbe8b4c8e1b0
|
|
| MD5 |
a812866123aa8497f17a94ce68ea1ba2
|
|
| BLAKE2b-256 |
564229e5a8b4b74f5a2b3ede07c086faabec0ba66f2d59ade8fdbea4556f2eab
|