pypomp.core.results.PanelPompMIFResult

class pypomp.core.results.PanelPompMIFResult(method: str, execution_time: float | None, key: Array, timestamp: Timestamp = <factory>, theta: PanelParameters | None = None, shared_traces: DataArray = <factory>, unit_traces: DataArray = <factory>, logLiks: DataArray = <factory>, J: int = 0, M: int = 0, rw_sd: RWSigma | None = None, thresh: float = 0.0, n_monitors: int = 0, block: bool = False)[source]

Bases: PanelPompEstimationTracesMixin, PanelPompBaseResult

Result from PanelPomp.mif() method.

Attributes

J: int = 0

The number of particles used for filtering.

M: int = 0

The number of iterations performed.

block: bool = False

Whether block-style filtering was used.

n_monitors: int = 0

The number of particle filters used to estimate log-likelihoods at each iteration.

rw_sd: RWSigma | None = None

The random walk standard deviations for parameter perturbation.

theta: PanelParameters | None = None

The panel parameter object used for the computation.

thresh: float = 0.0

The resampling threshold used.

shared_traces: DataArray

Shared parameter traces across iterations. Dimensions: (“theta_idx”, “iteration”, “variable”)

unit_traces: DataArray

Unit-specific parameter traces across iterations. Dimensions: (“theta_idx”, “iteration”, “unit”, “variable”)

logLiks: DataArray

Log-likelihoods for each unit across iterations. Dimensions: (“theta_idx”, “iteration”, “unit”)

method: str

The name of the method that produced this result (e.g., ‘pfilter’, ‘mif’).

execution_time: float | None

Total execution time in seconds.

key: jax.Array

The JAX random key used for this execution.

timestamp: pd.Timestamp

The date and time when the result was created.

Methods

CLL([average])

Return conditional log-likelihoods as a DataFrame.

ESS([average])

Return Effective Sample Size as a DataFrame.

__init__(method, execution_time, key, ...)

merge(*results)

Merge multiple result objects of the same type.

print_summary([n])

Print a summary of this result.

to_dataframe([ignore_nan])

Convert panel result to DataFrame.

traces()

Return panel result formatted as traces (long format).