sequince.steps.meta#

Meta SMC steps that run another SMC loop in the same target space.

Attributes#

Classes#

MetaSMCStep

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.SMCStep

SMC 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:
Return type:

tuple[sequince.state.ParticleState, sequince.steps.context.StepContext, dict[str, Any] | None]

state_dict()[source]#

Return mutable state required by subsequent SMC iterations.

Return type:

dict[str, Any]

load_state_dict(state)[source]#

Restore state produced by state_dict().

Parameters:

state (collections.abc.Mapping[str, Any])

Return type:

None