Parameters¶
- class pypomp.core.parameters.PompParameters(theta: ThetaInput, logLik: np.ndarray | None = None, estimation_scale: bool = False)[source]¶
Bases:
ParameterSetManages parameters for a standard Pomp model. Internal storage is a list of dictionaries.
- Parameters:
theta (ThetaInput) – Parameters for the model. Accepts: - A single dictionary: dict[str, Numeric] - A list of dictionaries: list[dict[str, Numeric]] - An existing PompParameters object
logLik (np.ndarray, optional) – A numpy array of log-likelihoods.
estimation_scale (bool, optional) – Whether the parameters are in the estimation scale. Defaults to False.
Methods
|
Convert to JAX array matching the order of param_names. |
Returns the number of parameter replicates (J). |
|
|
Returns a new ParameterSet containing only the specified replicate indices. |
Returns the list of parameter names contained in this set. |
|
|
Returns the internal list of dictionaries. |
|
Transform the parameters to or from the estimation parameter space. |
|
Replace internal parameter sets with the top n based on stored log-likelihoods. |
|
Merge replications from an arbitrary number of PompParameters objects into a single PompParameters object. |
- class pypomp.core.parameters.PanelParameters(theta: dict[str, DataFrame | None] | list[dict[str, DataFrame | None]] | PanelParameters | None, logLik_unit: ndarray | None = None, estimation_scale: bool = False)[source]¶
Bases:
ParameterSetManages parameters for PanelPomp models. Internal storage is a list of dictionaries, always containing “shared” and “unit_specific” keys mapping to DataFrames (which may be empty).
- Parameters:
theta (PanelParameters | dict | list, optional) – Parameters for the panel model. Accepts: - A single dictionary with “shared” and “unit_specific” keys. - A list of such dictionaries. - An existing PanelParameters object.
logLik_unit (np.ndarray, optional) – A numpy array of unit-specific log-likelihoods.
estimation_scale (bool, optional) – Whether the parameters are in the estimation scale. Defaults to False.
Methods
Returns the number of parameter replicates (J). |
|
Returns the list of parameter names contained in this set. |
|
Return the list of unit names from the first replicate's unit_specific DataFrame. |
|
|
Returns a new ParameterSet containing only the specified replicate indices. |
|
Converts the parameters to a JAX array suitable for model functions. |
|
|
|
|
Sorts unit-specific parameters and shared parameters in descending order of unit log-likelihood and shared log-likelihood, respectively, then combines them to form new parameter sets. |