Skip to content

feat(python): score an ensemble against an observed burnt area (#172) - #246

Merged
filippi merged 1 commit into
forefireAPI:devfrom
HugoFara:feat/ensemble-scores
Oct 31, 2026
Merged

filippi merged 1 commit into
forefireAPI:devfrom
HugoFara:feat/ensemble-scores

Conversation

@HugoFara

Copy link
Copy Markdown
Collaborator

Adds three helpers to score an ensemble against an observed burnt area, the first next step listed in my #172 comment:

  • dice(burnt, observed): overlap 2|A ∩ B| / (|A| + |B|), one value per member;
  • brier_score(probability, observed): error of the probability map; on members' burnt areas, one value per member, so the ensemble can be compared with them;
  • reliability(probability, observed, bins=...): fraction of the cells in each probability bin that actually burnt.

They take plain arrays (the output of run_ensemble / burn_probability and a boolean map), so no new dependency. On the Slinkard 2017 ensemble they reproduce the scores in the #172 comment (reliability 18 / 43 / 64 / 80 / 99% burnt).

Tests in tests/python/test_ensemble.py (already run by CI), a section in the ensembles User Guide page, and a CHANGELOG entry.

Drafted with Claude Opus 5.5.

…ireAPI#172)

dice, brier_score and reliability take plain arrays: the members' burnt
areas or the burn-probability map, and a boolean map of what burnt. Dice
and Brier give one value per member on [member, y, x] input, so the
ensemble can be compared with its members.
@filippi
filippi merged commit ecae009 into forefireAPI:dev Oct 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants