Catalog PyPI
PACKAGE EXPLORERView in registry

agent-torch-visualize

PyPI

visualizing large population models

Versions collected1
Direct dependencies2From release 0.1.0
Last observed20 Oct, 23:34 UTC

README

Version 0.1.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.017 May 20252

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
agenttorch/visualize

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:34 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b12f0cd857eb2613dcbd447da8d01542873f7065cf36b9e408c23bce8498d7ab