traveler.steps.SampleHouseholds#
- class traveler.steps.SampleHouseholds(n, seed=42, use_jax=False)[source]#
Bases:
StepSample households from the store.
- Parameters:
n (int) – Number of households to sample.
seed (int, optional) – Random seed for reproducibility, by default 42.
use_jax (bool)
Methods#
|
Sample households using the configured execution backend. |
|
Sample households and related records using JAX indexing. |
|
Sample households and related records using pandas and NumPy. |
|
Sample households and related records using Polars. |