Skip to content

Add DSR tournament selection option + evolution bench - #57

Merged
OnePunchMonk merged 2 commits into
OnePunchMonk:mainfrom
avayaaggarwal:evolve/dsr-selection-pr
Dec 3, 2026
Merged

OnePunchMonk merged 2 commits into
OnePunchMonk:mainfrom
avayaaggarwal:evolve/dsr-selection-pr

Conversation

@avayaaggarwal

Copy link
Copy Markdown
Contributor

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.

avayaaggarwal and others added 2 commits December 3, 2026 15:52
- 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
@OnePunchMonk
OnePunchMonk merged commit 59e7e17 into OnePunchMonk:main Dec 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants