nlsq.diagnostics.create_health_report

nlsq.diagnostics.create_health_report(identifiability=None, gradient_health=None, sloppy_model=None, plugin_results=None, config=None)[source]

Create aggregated health report from component reports.

This factory function aggregates results from all diagnostic components into a unified ModelHealthReport with: - Overall status determination (HEALTHY/WARNING/CRITICAL) - Health score computation with weighted contributions - Issue aggregation sorted by severity and code - Optional warnings emission for critical issues - Optional verbose console output

Parameters:
Returns:

Complete aggregated report with status, score, and all issues.

Return type:

ModelHealthReport

Examples

>>> from nlsq.diagnostics.health_report import create_health_report
>>> report = create_health_report(
...     identifiability=ident_report,
...     gradient_health=grad_report,
... )
>>> print(report.status)
HealthStatus.HEALTHY
>>> print(report.health_score)
0.95