mixle.stats.latent.markov_stopping moduleΒΆ
Shared validation and bounded-failure contracts for stopping-time Markov models.
- exception HiddenMarkovNonterminationError(*, mode, max_steps, last_state=None)[source]
Bases:
RuntimeErrorRaised when bounded stopping-time sampling does not reach its terminal event.
- validated_state_ids(values, n_states, *, context, field)[source]
Return exact in-range state IDs without lossy integer coercion.
- validated_terminal_states(values, n_states, *, context)[source]
Return exact in-range terminal state IDs without lossy integer coercion.
- validated_terminal_values(values, *, context)[source]
Return an owned non-empty set of terminal emissions.
- validate_terminal_reachability(initial, transitions, terminal_states, *, context)[source]
Require every initially reachable state to have a positive-probability path to termination.
- validated_terminal_step_cap(value)[source]
Return an exact positive stopping-time sampling bound.