Repository navigation
S7: per-ELF AUC is NA when one year has no burn - #32
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhXsFis2pbqBTh2PPh
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.
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
aucrows of S7 inwave1_results.csv(they were NA); nothing else changes.Technical details
Defect:
R/runWave1.R:71, the per-ELF value of each calibration measure ispooledValue(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