Repository navigation
Predict with climate outside the maxAsymptote ceiling when the ledger row asks for it - #30
Merged
Merged
Conversation
… row asks for it spreadProbOneELF() computes the spread probability with fireSenseUtils::spreadProbFromCovs(), the one function the fit uses, and hands it the row's climate reference (fireSenseUtils::spreadFitClimateRefTxt, ledgerClimateRef()). A row with a reference (fireSense_spreadFit's spreadLink = "climateOutside") gets the climate term on the logit after the fuel ceiling, exactly as in the fit; a row without one predicts as before. With several ELFs each row uses its own. fireSenseUtils floor 0.2.3.9106. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
eliotmcintire
added a commit
that referenced
this pull request
Oct 18, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6
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.
Lets spread predictions follow a fit that puts drought after the fuel-driven ceiling on spread probability, using the same formula and the same reference climate the fit stored, so a fit and its forecast cannot disagree. Rows from existing fits predict exactly as before.
Affects: only ledger rows written by
fireSense_spreadFitwithspreadLink = "climateOutside"; every other row gives the same values as today.Depends-on: PredictiveEcology/fireSenseUtils#165
Technical details
spreadProbOneELF()computes the spread probability withfireSenseUtils::spreadProbFromCovs()(the one function the fit uses) instead oflogisticAll(), and hands it the row's climate reference fromledgerClimateRef()(fireSenseUtils::spreadFitClimateRefTxt); with several ELFs each row uses its own. Without a referencespreadProbFromCovs()islogisticAll(), so old rows are unchanged.fireSense_burnalready adds the year effect onqlogis(p), which is the new link's last step, so it needs no change.fireSenseUtilsfloor 0.2.3.9106.Tests:
tests/testthat/test-climateOutside.R(hand-computed values:p0under the ceiling plus the climate shift on the logit, abovemaxAsymptotewhere climate is high and equal top0at the reference; rows without a reference identical to the baseline; two ELFs each with their own reference, blended). Whole module suite: 168 pass.🤖 Generated with Claude Code
https://claude.ai/code/session_014G18Mik3fH4z5M5CyMSUS6