sequince.steps.meta#
Meta SMC steps that run another SMC loop in the same target space.
Attributes#
Classes#
SMC step that runs another SMC loop in the same target space. |
Module Contents#
- sequince.steps.meta.META_SMC_OUTPUT_KEY = 'smc_mutation_results'#
- class sequince.steps.meta.MetaSMCStep(smc_runner, posterior, *, record_outputs=False, run_kwargs=None, output_key=META_SMC_OUTPUT_KEY)[source]#
Bases:
sequince.steps.base.SMCStepSMC step that runs another SMC loop in the same target space.
- runner#
- run_kwargs#
- posterior#
- record_outputs = False#
- output_key = 'smc_mutation_results'#
- apply(state, context, rng)[source]#
- Parameters:
state (sequince.state.ParticleState)
context (sequince.steps.context.StepContext)
rng (orng.RandomGenerator)
- Return type:
tuple[sequince.state.ParticleState, sequince.steps.context.StepContext, dict[str, Any] | None]
- load_state_dict(state)[source]#
Restore state produced by
state_dict().- Parameters:
state (collections.abc.Mapping[str, Any])
- Return type:
None