pypomp.core.pomp.Pomp.results

Pomp.results(index: int = -1, ignore_nan: bool = False) DataFrame[source]

Returns a DataFrame with the results of the method run at the given index in the model’s history.

This method provides a convenient way to access the outcome of previous runs (e.g., pfilter, mif, or train). It returns a tidy DataFrame containing the final log-likelihoods and parameter values for all replicates associated with that specific run.

Parameters:
  • index (int) – The index of the result to return. Defaults to -1 (the last result).

  • ignore_nan (bool) – If True, ignore NaNs when computing the log-likelihood.

Returns:

A DataFrame with the results of the method run at the given index.

Return type:

pd.DataFrame