Skip to content

Each prediction replicate uses one whole parameter set (new parameter .rep) - #24

Merged
eliotmcintire merged 2 commits into
developmentfrom
oneParamSetPerRep
Oct 4, 2026
Merged

eliotmcintire merged 2 commits into
developmentfrom
oneParamSetPerRep

Conversation

@eliotmcintire

Copy link
Copy Markdown
Collaborator

spreadProbOneELF() (fireSense_spreadPredict.R:335, rowMeans over one map per parameter set) and yearSpreadSDOf() (mean of yearSpreadSD) averaged the fitted sets, so fireSense_burn applied an averaged sd to an averaged map and each set's yearSpreadSD was no longer paired with its own coefficients. Decision: parameter sets stay whole and separate. New parameter rep (integer, default 1, min 1) selects row ((rep - 1) %% number of sets) + 1 of each ELF through the new paramSetForRep(), and fireSense_SpreadSD is that same row's yearSpreadSD; the project must pass rep. Tests cover rows 1,2,3,1 for rep 1-4, the sd of the chosen row, and two ELFs with 3 and 2 sets each taking their own modulo; they fail on development and pass here (48 tests, 0 failures; development's own 46 pass). The module has no explicit Cache call, so rep reaches the event cache key as an ordinary module parameter.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv

eliotmcintire and others added 2 commits October 3, 2026 12:50
… rep)

spreadProbOneELF() averaged one map per parameter set and yearSpreadSDOf() averaged
yearSpreadSD, breaking the pairing of each set's yearSpreadSD with its coefficients.
Replicate `rep` now uses row ((rep - 1) %% nSets) + 1 of each ELF, via paramSetForRep().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CwcjqqK59FmTJscyi7xUqv
@eliotmcintire eliotmcintire changed the title Each prediction replicate uses one whole parameter set (parameter rep) Each prediction replicate uses one whole parameter set (new parameter .rep) Oct 3, 2026
@eliotmcintire

Copy link
Copy Markdown
Collaborator Author

Renamed the parameter to .rep: a replicate number is SpaDES-aware run metadata, like .studyAreaName, and PredictiveEcology/SpaDES.project#190 now sets .globals$.rep from the experiment's .rep. Module tests pass (48).

@eliotmcintire
eliotmcintire merged commit 4dcfcee into development Oct 4, 2026
6 checks passed
@eliotmcintire
eliotmcintire deleted the oneParamSetPerRep branch October 4, 2026 01:00
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