Predict a linear-fuel fit with linear fuel biomass - #16
Merged
Merged
Conversation
Removes plotSpreadProbByFuelType() (no caller), the if (FALSE) pre-June-2025 prediction branch, and commented-out code. The live else-branch is unwrapped and dedented; no behaviour change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…scheduling 74 expectations (was 13). Predicted spreadProb values are hand-computed through the logistic from toy covariates and a toy fitted model, including rescaling with the fit's covMinMax. All pass on development and on this branch. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Removed parameters coefToUse, mutuallyExclusiveCols and .saveInterval, and input fireSense_SpreadFitted: nothing reads them. The save event called spreadPredictSave(), which does not exist; it now only emits a message. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B4sgRg9EwyHaAQdDzUaQW
fireSense_SpreadFit now fits fuel biomass on the linear scale, divided by 1e4, and records that as covMinMax_spread = c(0, 1e4) for each fuel column. Fuel still reaches this module logged (fireSenseUtils::logMinB()), so for those columns the run event undoes the log with fireSenseUtils::fuelLogToLinear(), the function the fit used, before rescaling. A fit made earlier, on the log scale, has the log range in covMinMax_spread and is predicted exactly as before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013B4sgRg9EwyHaAQdDzUaQW
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.
Merge #15 first; this branch contains it. Needs fireSenseUtils >= 0.2.3.9029 (its
feat/linear-fuel-covariatesPR).fireSense_SpreadFit now fits fuel biomass on the linear scale, divided by 1e4, and stores
c(0, 1e4)ascovMinMax_spreadfor each fuel column. Fuel still reaches this module logged, so for those columns the run event callsfireSenseUtils::fuelLogToLinear(), the function the fit used, before rescaling. A fit made earlier on the log scale has the log range there and is predicted exactly as before.Two new tests with hand-computed values, one for each kind of fit. Removing the transform, or applying it to a log fit, each fails them.
🤖 Generated with Claude Code
https://claude.ai/code/session_013B4sgRg9EwyHaAQdDzUaQW