check#
This module provides functions for checking and validating Pastas models and their components.
Examples
Run a checklist of standard checks on a Pastas model:
checks = [
{"func": rsq_geq_threshold, "threshold": 0.7},
{"func": response_memory, "cutoff": 0.95, "factor_length_oseries": 0.5},
{"func": uncertainty_gain, "n_std": 1.96},
{"func": parameter_bounds},
]
ps.check.checklist(ml, checks)
Or use the list of checks defined in Brakenhoff et al. (2022):
ps.check.checklist(ml, ps.check.checks_brakenhoff_2022)
Functions#
|
Check R^2 >= threshold. |
|
Check if response function memory is shorter than fraction of calibration period. |
|
Check if response function memory is shorter than warmup. |
|
Check if the gain is larger than n_std times the uncertainty in the gain. |
|
Check if the optimal parameter values are not on the lower or upper bounds. |
|
Check if parameter value is larger than n_std times the standard deviation. |
|
Guess the unit or dimension of a parameter based on its name. |
|
Runs test to check if there is significant autocorrelation in the noise. |
|
Stoffer-Toloi test to check if there is significant autocorrelation in the noise. |
|
Run a list of checks on a Pastas model. |
Print a report of the check results. |