sampler
Factory selecting the right BlackJAX SMC mode class from a BlackJAXSMCConfig.
Functions:
| Name | Description |
|---|---|
build_blackjax_smc_sampler |
Construct the BlackJAX SMC mode sampler selected by |
build_blackjax_smc_sampler(*, n_dims: int, log_prior_fn: Callable[[Float[Array, ' n_dims']], FloatScalar], log_likelihood_fn: Callable[[Float[Array, ' n_dims']], FloatScalar], log_posterior_fn: Callable[[Float[Array, ' n_dims']], FloatScalar], config: Optional[BlackJAXSMCConfig] = None, periodic: Optional[dict[int, tuple[float, float]]] = None) -> Sampler
ยค
Construct the BlackJAX SMC mode sampler selected by config.
persistent_sampling/temperature_ladder select one of the four mode
classes, matching the same combinations BlackJAXSMCConfig has always
supported:
persistent_sampling=True, temperature_ladder=None-> adaptive persistent (ap)persistent_sampling=True, temperature_ladder=given-> fixed-ladder persistent (fp)persistent_sampling=False, temperature_ladder=None-> adaptive tempered (at)persistent_sampling=False, temperature_ladder=given-> fixed-ladder tempered (ft)