Repository navigation
Reuse completed TPE observations across trials - #274
Merged
Merged
Conversation
- Reuse completed observations in bounded, storage-owned study histories. - Keep active trial snapshots immutable through copy-on-write. - Handle out-of-order completion, omitted trials, and conditional parameters. - Isolate caches for storages with identical study and trial IDs. - Keep upstream tests in place and add observation cache regression cases.
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.
Reuse completed TPE observations across trials instead of rebuilding parameter columns for each trial. Retain per-study histories and immutable per-trial snapshots, updating columns as trials finish or are discarded.
Drop a study's cached history when an update fails so malformed observations cannot bypass the cache limit; add a regression test for this failure path.
Closes #266.
Original implementation by @tkng, cherry-picked from e8ba3ae with the original commit author preserved. The error-path fix is a separate follow-up commit.