Utilities

The utils module provides shared numerical helpers used internally by all GPClarity modules, plus check_model_health() — the only public, stable export from this module. Call check_model_health before running any analysis to confirm that the model has finite parameters and a computable log-likelihood.

Private helpers (_cholesky_with_jitter, _validate_array, etc.) are implementation details and may change without a deprecation notice.

import gpclarity

health = gpclarity.check_model_health(model)
if not health["healthy"]:
    for issue in health["issues"]:
        print("ERROR:", issue)
for w in health["warnings"]:
    print("WARN:", w)

Public API

Internal Helpers