feat: multi-fidelity support via Phase-level world/scorer overrides#101
Merged
jc-macdonald merged 1 commit intomainfrom Apr 17, 2026
Merged
feat: multi-fidelity support via Phase-level world/scorer overrides#101jc-macdonald merged 1 commit intomainfrom
jc-macdonald merged 1 commit intomainfrom
Conversation
) - Phase dataclass gains optional world and scorer fields (default None inherits from Study), enabling cheap-surrogate-then-expensive-model workflows. - Study.run() resolves per-phase overrides at the top of each iteration. - Bayesian example updated: simulator accepts n_samples parameter, new _run_multi_fidelity() section screens 60 designs with 50 draws then validates top 10 with 2000 draws. - Guide updated with multi-fidelity section and cross-domain examples. - 5 new tests covering world override, scorer override, both combined, screen-then-validate, and default None behavior.
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.
Summary
Adds multi-fidelity support: each
Phasecan optionally override theStudy-levelworldand/orscorer, enabling cheap-surrogate-then-expensive-model workflows (#78).API change
Backward-compatible — defaults to
None, so all existing code works unchanged.Design rationale
Fidelity is a computational strategy, not a design factor — you don't optimize over it, you use it to allocate compute. A phase-level override keeps fidelity concerns at the architectural level (which phase uses which model) rather than mixing them into the factor space.
Changes
src/trade_study/study.pyPhasegainsworldandscorerfields;Study.run()resolves per-phase overridestests/test_study.pyexamples/bayesian_study.pyn_samplesparameter; new multi-fidelity section (50 draws screen → 2000 draws validate)docs/guide/bayesian.mdCI
Closes #78