Complete static browser summary report parity - #399
Conversation
Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Co-authored-by: uriahf <11351434+uriahf@users.noreply.github.com>
Parity & Architecture Summary
This PR completes the PYTHON STATIC BROWSER SUMMARY-REPORT PARITY milestone, bringing Python's static browser summary report to analytical and structural parity with the completed R browser summary report (PR #221).
ad2570107596cef73d35e4878153b076c32f7d090.1.36release:v0.14.0source_commit:ec3a382656ce5b1c735175d5a8fd1ceb4f153eafarchive:rtichoke-viz-0.14.0.tar.gzsha256:b7c30d12db4b3f8008ef035bd4f7e04c09d599ced5bc8606a4a4141c5cdf48eeKey Deliverables & Changes
Vendored
rtichoke_vizv0.14.0:src/rtichoke/_vendor/rtichoke_viz/.VENDORED_FROM.Dependency Update:
scikit-learn>=1.6.1from[dependency-groups.dev]to[project.dependencies]inpyproject.toml.SummaryMetricsSpec v1.0, Prevalence, and AUROC:
population. Evaluated populations have local deterministic IDs (population-1,population-2) withevaluationsempty. Estimate expressed as a proportion.evaluation(evaluationspopulated,populationsempty). Computed directly from rawrealsandprobsusingsklearn.metrics.roc_auc_score.median(controls) <= median(cases),roc_auc_scoreuses original scores; ifmedian(controls) > median(cases), score ranking is reversed using-scores. Single-class outcomes canonicalize tonull._validate_and_align_binary_inputs). Explicitly fails on invalid/unmapped inputs without silent dropping.ReportSpec v1.1 & Hierarchy Parity:
_report_spec.pyto ReportSpec v1.1 with type-aware schema version validation (summary_metrics->1.0, all v2 component specs ->2.0).prevalence(prevalence-summary)calibration(calibration-smooth[omits yAxis.domain to show overshoot],calibration[yAxis.domain = [0, 1]])discrimination(auroc,discrimination-probability-threshold[roc,precision-recall,gains,lift],discrimination-ppcr[roc-2,precision-recall-2,gains-2,lift-2])utility(decision-curve,interventions-avoided)performance-table(performance-table-probability-threshold[performance-table],performance-table-ppcr[performance-table-2])RtichokeBrowserReport.write_html()options to{ sectionGroupPresentation: "tabs", groupPresentation: "stacked" }.renderer="r"in public APIs.Confirmation:
rtichoke_viz. Statistics remain strictly consumer-owned.Tests & Verification
tests/test_summary_metrics_spec.py,tests/test_report_spec.py,tests/test_report_browser.py, andtests/test_summary_report_browser.py.uv run pytest), type checker (uv run ty check src tests), and ruff checks/formatting (uv run ruff check src tests).PR created automatically by Jules for task 18148318097174994982 started by @uriahf