Skip to content

Predict a linear-fuel fit with linear fuel biomass - #16

Merged
eliotmcintire merged 4 commits into
developmentfrom
feat/linear-fuel-covariates
Sep 21, 2026
Merged

eliotmcintire merged 4 commits into
developmentfrom
feat/linear-fuel-covariates

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

Merge #15 first; this branch contains it. Needs fireSenseUtils >= 0.2.3.9029 (its feat/linear-fuel-covariates PR).

fireSense_SpreadFit now fits fuel biomass on the linear scale, divided by 1e4, and stores c(0, 1e4) as covMinMax_spread for each fuel column. Fuel still reaches this module logged, so for those columns the run event calls fireSenseUtils::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

eliotmcintire and others added 4 commits September 20, 2026 09:51
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
@eliotmcintire
eliotmcintire merged commit 3be9234 into development Sep 21, 2026
7 of 9 checks passed
@eliotmcintire
eliotmcintire deleted the feat/linear-fuel-covariates branch September 21, 2026 05:49
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.

1 participant