Skip to content

Plotting Utilities

plot_hmm_states_and_observations

Plot latent discrete HMM states as colored background bands with observed signals overlaid.

:param times: (T,) Time points :param x: (T,) Discrete latent state indices (0..K-1) :param y: (T,) or (T, N_obs) Observations


plot_continuous_states_and_partial_observations

Plot continuous latent states with partial noisy observations.

:param times: (T,) Time points :param x: (T, state_dim) Continuous latent states :param y: (T, obs_dim) Observations :param show_fig: Whether to show the figure :param save_path: Optional path to save the figure