Skip to content

S7: per-ELF AUC is NA when one year has no burn - #32

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix-s7-elf-auc
Dec 2, 2026
Merged

eliotmcintire merged 1 commit into
developmentfrom
fix-s7-elf-auc

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

The burn-location test (S7) reported no AUC for an ELF when any one of its years had no observed burn. This makes the per-ELF AUC the median over the years that have one.

Affects: the per-ELF auc rows of S7 in wave1_results.csv (they were NA); nothing else changes.

Technical details

Defect: R/runWave1.R:71, the per-ELF value of each calibration measure is pooledValue(z$value), a median that returns NA if any year's value is NA. A year with no observed burned cell has an undefined AUC (NA). The pooled row already dropped non-finite values (bootstrapMean()), so only ELF rows were NA. Found on the real-data scoring of ClimBaseline (all four ELF rows NA, pooled 0.497).

Fix: drop non-finite values before the per-ELF split. Test (tests/testthat/test-spatial.R): an ELF with one no-burn year has finite AUC rows; it fails on development and passes here. Full suite: 749 expectations, 0 failed (development: 748 after #31).

Reuses: the existing pooledValue()/calibration rows path (one filter added); new: none.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh

@eliotmcintire eliotmcintire added bug Something isn't working backwards compatible Does not break existing behaviour labels Dec 1, 2026
@eliotmcintire
eliotmcintire merged commit 2e45bcb into development Dec 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards compatible Does not break existing behaviour bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant