Skip to main content

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",
  )

Release files for agent-torch-visualize 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-torch-visualize 0.1.0
File Size Uploaded
agent_torch_visualize-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-torch-visualize 0.1.0
File Interpreter ABI Platform
agent_torch_visualize-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / agent_torch_visualize-0.1.0.tar.gz

Download URL agent_torch_visualize-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
849a4b664b5071592a07f4a7c21de96aa04f920dc5ae599a09b3a1b3ea1bf802
BLAKE2b-256 checksum
How to use checksums
419d9d543f35d276444ed1f2847fed84e3db6e898f6e003eb21e8b3435cde1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / agent_torch_visualize-0.1.0-py3-none-any.whl

Download URL agent_torch_visualize-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6588609b17634cd15753991d603eac4868b06b04246a48b1b0adbbe8b4c8e1b0
BLAKE2b-256 checksum
How to use checksums
564229e5a8b4b74f5a2b3ede07c086faabec0ba66f2d59ade8fdbea4556f2eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page