Skip to content

API reference — Model Reports & Diagnostics

Unified 4-section ModelReport representation: Objective, Learner, Controller, Diagnostics, and optional Inference.

ModelReport

class ModelReport(core_report: '_CoreModelReport') -> 'None'

Unified Model Report containing Objective, Learner, Controller, Diagnostics, and optional Inference.

Wraps the core Rust ModelReport representation and renders to text (R/statsmodels-style), Markdown, and dictionary/JSON forms.

ModelReport.from_dict

from_dict(data: 'dict[str, Any]') -> 'ModelReport'

Create ModelReport from dictionary structure.

ModelReport.from_json

from_json(json_str: 'str') -> 'ModelReport'

Create ModelReport from JSON string.

ModelReport.to_dict

to_dict(self) -> 'dict[str, Any]'

Convert report to dictionary representation.

ModelReport.to_json

to_json(self) -> 'str'

Render report as formatted JSON string.

ModelReport.to_markdown

to_markdown(self) -> 'str'

Render report as GitHub-flavored Markdown.

ModelReport.to_text

to_text(self) -> 'str'

Render report as R/statsmodels-style aligned console text.

ModelReport.title

@title

Report title.