Skip to content

Commit d0d0f68

Browse files
docs: update create_summary_report_times docstring and clarify renderer parameter
- Add user-facing prose to create_summary_report_times() docstring documenting its 5 top-level report sections (Event Probability, Calibration, Discrimination, Utility, Performance Table) and intentional omissions relative to static reports. - Clarify in user_guide/06-summary-reports.qmd that renderer="browser" is an opt-in parameter for create_summary_report(), whereas create_summary_report_times() generates browser summary reports directly. Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
1 parent 39fa3fa commit d0d0f68

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

‎src/rtichoke/summary_report/summary_report.py‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ def create_summary_report_times(
7878
) -> Path:
7979
"""Create a canonical browser time-dependent model-performance summary report.
8080
81+
The generated time-dependent browser report contains five top-level sections:
82+
83+
1. Event Probability
84+
2. Calibration
85+
3. Discrimination
86+
4. Utility
87+
5. Performance Table
88+
89+
Compared with the static browser Summary Report, it intentionally omits:
90+
91+
* Prevalence section (replaced by Event Probability over time);
92+
* Prediction Distribution section;
93+
* AUROC summary metric.
94+
8195
Parameters
8296
----------
8397
probs : Dict[str, np.ndarray]
@@ -92,7 +106,8 @@ def create_summary_report_times(
92106
List of heuristic configurations for censoring and competing events.
93107
Defaults to ``[{"censoring_heuristic": "adjusted", "competing_heuristic": "adjusted_as_negative"}]``.
94108
by : float, optional
95-
Step size for probability thresholds / PPCR. Defaults to 0.01.
109+
Step size for probability thresholds / Predicted Positives Condition Rate (PPCR).
110+
Defaults to 0.01.
96111
output_file : str or pathlib.Path, optional
97112
HTML destination file path. Defaults to ``"summary_report_times.html"``.
98113

‎user_guide/06-summary-reports.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ The time-dependent summary report intentionally differs from the binary static r
9191
* **No Prediction Distribution section**: Prediction distribution histograms are omitted in time-dependent reports.
9292
* **No AUROC summary metric**: AUROC summary metric cards are omitted in time-dependent reports.
9393

94-
The browser backend does not replace Quarto or the historical R backend, and `renderer="browser"` is an opt-in path. Existing Plotly, Matplotlib, table, and standalone browser-chart APIs remain unchanged.
94+
The browser backend does not replace Quarto or the historical R backend. `renderer="browser"` is an explicit opt-in parameter for `create_summary_report()`, whereas `create_summary_report_times()` generates a browser summary report directly without requiring a `renderer` argument. Existing Plotly, Matplotlib, table, and standalone browser-chart APIs remain unchanged.

0 commit comments

Comments
 (0)