BiweeklyParams#
- class BiweeklyParams(**data)[source]#
Bases:
BaseModelParamsParameters for the biweekly compartmental measles model (14-day timesteps).
All fields are inherited from
BaseModelParams. Key fields:- num_ticks#
Number of biweekly (14-day) simulation steps (e.g., 26 = 1 year, 130 = 5 years).
- Type:
int
- seed#
Random seed for reproducibility. Default: 20250314.
- Type:
int
- start_time#
Simulation start in
"YYYY-MM"format. Default:"2000-01".- Type:
str
- verbose#
Print detailed logging. Default: False.
- Type:
bool
Example:
params = BiweeklyParams(num_ticks=26, seed=42) # 1 year params = BiweeklyParams(num_ticks=130, seed=0) # 5 years params = BiweeklyParams(num_ticks=260, start_time="2005-01") # 10 years
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Attributes
model_computed_fieldsConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
List of model states.
Time step in days.
show_progressuse_numbaMethods
- property time_step_days: int#
Time step in days. Must be implemented by subclasses.
- property states: list[str]#
List of model states. Must be implemented by subclasses.
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].