traveler.steps.sample_logsum_simulate.simulate_choice#
- sample_logsum_simulate.simulate_choice(store, *, choosers=None, param=None)[source]#
Sample alternatives, evaluate final utilities, and choose one.
- Parameters:
store (AbstractStore) – Store containing chooser and supporting model data.
choosers (WorkingTable, optional) – Choosers to simulate; defaults to the configured table.
param (Parameters | dict[str, object], optional) – Parameters for both utility functions; defaults to
self.param.
- Returns:
One selected alternative per chooser.
- Return type:
jax.Array | CategoricalArray