Repository navigation
controlSet() keeps the shipped-data digest - #74
Open
eliotmcintire wants to merge 1 commit into
Open
eliotmcintire wants to merge 1 commit into
eliotmcintire wants to merge 1 commit into
Conversation
DEoptim.control() rebuilt control and dropped clusterSetup()'s objsDigest, so every fit through controlSet() had one cache key (MPB: all windows of B, C and D loaded the first fit). Also call DEoptim::DEoptim.control. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Lx3DXhV7osHiZpUPDww2xs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## development #74 +/- ##
===============================================
+ Coverage 76.23% 76.53% +0.30%
===============================================
Files 24 24
Lines 2146 2148 +2
===============================================
+ Hits 1636 1644 +8
+ Misses 510 504 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Fits that go through
controlSet()were all saved under the same cache entry, so a second fit on different data loaded the first fit's answer instead of fitting. In the MPB project, every training window of three study areas got the same single fit.Affects: fits whose
controlpasses throughcontrolSet()(mpbRedTopSpread does this) now fit their own data. A fit cached under the old shared key is not reused.Technical details
controlSet()(R/DEoptim.R:676) rebuildscontrolwithDEoptim.control()when it has fewer than 20 elements. That drops theobjsDigestattributeclusterSetup()sets, soDEoptimIterative()gotshippedDigest = NULLand keyed each generation on the objective's arguments only. The fix saves the digest before rebuildingcontroland puts it back after.controlSet()also now callsDEoptim::DEoptim.controlinstead of the string"DEoptim.control", which only worked with DEoptim attached.Two new tests in
test-DEoptimShippedDataKey.R:controlSet()keeps the digest, and two fits throughcontrolSet()that differ only in the shipped data converge to their own targets. Without the fix 3 tests fail; with it 9/9 pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01Lx3DXhV7osHiZpUPDww2xs