traveler.steps.sample_logsum_simulate.sample_alternatives#

sample_logsum_simulate.sample_alternatives(store, *, choosers=None, param=None)[source]#

Draw raw alternative codes from the sampling model.

Parameters:
  • store (AbstractStore) – Store containing chooser and supporting model data.

  • choosers (WorkingTable, optional) – Choosers to sample for; defaults to the configured table.

  • param (Parameters | dict[str, object], optional) – Parameters for the sampling utility; defaults to self.param.

Returns:

Integer alternative codes with shape (choosers, sample_size).

Return type:

jax.Array