Repository navigation
Add DSR tournament selection option + evolution bench - #57
Merged
OnePunchMonk merged 2 commits intoDec 3, 2026
Merged
Conversation
- src/agent/selection.py: select_best(results, mode) with 'sharpe' (default, unchanged) and 'dsr' (deflated Sharpe via src/gate/dsr) rules - agent_graph.py: tournament winner chosen by config agent.selection - config.yaml: agent.selection: sharpe - bench/: sealed-holdout comparison of raw vs DSR vs ensemble vs cost-loaded selection across grid and deepseek-v4-1-flash proposal pools Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
…t retention - selection.py: derive n_obs/skew/kurt from equity_curve (previously never set, so dsr ranked identically to sharpe); hurdle uses all trials so far; whole pool falls back to raw Sharpe if any candidate lacks stats (no mixed scales); NaN Sharpe never wins; explicit kurt=0 kept; ties break on raw Sharpe - agent_graph.py: cross-iteration best-retention uses the same selection rule - config.py: selection is Literal["sharpe", "dsr"] so typos fail at load - tests/test_selection.py: 9 tests - bench/BENCH_EVOLUTION.md: fix branch name, add review caveats
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.
Adds src/agent/selection.py with select_best(results, mode): 'sharpe' (default, unchanged) or 'dsr' (deflated Sharpe via src/gate/dsr). Tournament winner in agent_graph now honors config agent.selection. Includes bench/ with sealed-holdout comparison of raw vs DSR vs ensemble vs cost-loaded selection across grid and deepseek-v4-1-flash proposal pools. Finding: on a single SPY holdout no rule dominates; DSR only re-ranks when trials differ in n/skew/kurt. 460 tests pass.