jaxabm.ModelConfig

class jaxabm.ModelConfig(seed=0, steps=100, track_history=True, collect_interval=1)[source]

Bases: object

Configuration for model execution.

This class holds configuration parameters for model execution, including random seed, number of steps, and history tracking options.

seed

Random seed for reproducibility

steps

Number of simulation steps to run

track_history

Whether to track model history

collect_interval

Interval for collecting history (every N steps)

__init__(seed=0, steps=100, track_history=True, collect_interval=1)[source]

Initialize model configuration.

Parameters:
  • seed (int) – Random seed for reproducibility

  • steps (int) – Number of simulation steps to run

  • track_history (bool) – Whether to track model history

  • collect_interval (int) – Interval for collecting history (every N steps)

Methods

__init__([seed, steps, track_history, ...])

Initialize model configuration.