petab_select.criteria
Implementations of model selection criteria.
Functions
|
Calculate the Akaike information criterion (AIC) for a model. |
|
Calculate the corrected Akaike information criterion (AICc) for a model. |
|
Calculate the Bayesian information criterion (BIC) for a model. |
Classes
|
Compute various criteria. |
- class petab_select.criteria.CriterionComputer(model)[source]
Compute various criteria.
- property petab_problem: Problem
The PEtab problem that corresponds to the model.
Implemented as a property such that the
petab.Problem
object is only constructed if explicitly requested.Improves speed of operations on models by a lot. For example, analysis of models that already have criteria computed can skip loading their PEtab problem again.
- petab_select.criteria.calculate_aic(nllh, n_estimated)[source]
Calculate the Akaike information criterion (AIC) for a model.
- petab_select.criteria.calculate_aicc(nllh, n_estimated, n_measurements, n_priors)[source]
Calculate the corrected Akaike information criterion (AICc) for a model.
- Parameters:
- Return type:
- Returns:
The AICc value.
- petab_select.criteria.calculate_bic(nllh, n_estimated, n_measurements, n_priors)[source]
Calculate the Bayesian information criterion (BIC) for a model.
- Args
- nllh:
The negative log likelihood.
- n_estimated:
The number of estimated parameters in the model.
- n_measurements:
The number of measurements used in the likelihood.
- n_priors:
The number of priors used in the objective function.
- Returns:
The BIC value.