feat(notebooks): add 05_impact_reporting stakeholder template#49
Merged
Conversation
End-to-end impact reporting workflow: loads a deforestation mask, runs estimate_carbon for tonnes-of-CO2e and confidence intervals, computes a trend over the trailing 12 months, attaches validation metrics from 04_model_validation.ipynb when available, calls analytics.reporting.generate_report, and renders a stakeholder-ready Markdown narrative with headline numbers, trend, and validation section. Region/period/bbox are top-level constants so the same notebook can be re-run for Amazon, Congo, or Southeast Asia.
femi23
approved these changes
May 5, 2026
Collaborator
femi23
left a comment
There was a problem hiding this comment.
Data contract matches the /api/reports response shape we're serving in #42, so this notebook can be used as the reference implementation for what the API should return for a region/period query. The Markdown narrative is factual / non-promotional which is the right tone for the NGOs we're delivering to.
Approved.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
notebooks/05_impact_reporting.ipynb— end-to-end impact reporting template that combinesanalytics.carbon.estimate_carbon,analytics.statistics.compute_trend, andanalytics.reporting.generate_reportfor a configurable region/period.outputs/validation/benchmark_report.json(produced by the validation notebook in feat(notebooks): add 04_model_validation benchmarking notebook #48) and falls back to a baseline when not present./api/reportsendpoint and a stakeholder-ready Markdown narrative underoutputs/reports/.Why
Sprint deliverable: "Create 05_impact_reporting.ipynb — template for regional impact reports." Closes the carbon-analytics loop: training (#46) -> analysis (#47) -> validation (#48) -> reporting (this).
Test plan
papermillwithout errors.Notes for reviewers
papermillonce the analytics database is wired up.climatevision.reports.llm_reporter(Linda's feat(reports): add LLM-backed impact report generator #38) once both PRs land.