Repository navigation
predict_trans_pot: reuse stored potentials without requiring fitted models - #61
Merged
Conversation
…odels The check for fitted models ran before the per-transition reuse check, so a run whose trans_pot_t was written directly (potentials from an external estimator, e.g. Dinamica's Weights of Evidence) could not be allocated by alloc_clumpy() or alloc_dinamica(). Only require models when something is left to predict. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf
mmyrte
added this pull request to stack #67
October 6, 2026 09:43
mmyrte
commented
Oct 7, 2026
Collect the transitions left to predict up front and loop over those only; the "Found trans_pot_t" message per skipped transition is gone (a comment marks where verbose logging could bring it back). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf
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.
Stack 3/6, on top of #60.
What
predict_trans_pot()checked for fitted models before it checked, per transition, whether potentials were already stored. A run whosetrans_pot_twas written directly could therefore not be allocated byalloc_clumpy()/alloc_dinamica(); for example, Dinamica's Weights-of-Evidence probabilities, or class suitabilities from lulcc or CLUinPy.Now the models are only required when something is left to predict (or with
force = TRUE). The PIE benchmark uses this to allocate other tools' surfaces with CLUMPY: the estimator × allocator crossings.Tests
test_integ_trans_models_t.R: once potentials exist, aselect_scorethat no model carries no longer errors; the stored potentials are reused. All 67 results pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01D1LLswXe3jLjGTFrBsxgPf
Generated by Claude Code