Skip to content

Add dynamic ensemble weight optimisation for live predictions - #184

Open
ch55secake with Copilot wants to merge 4 commits into
mainfrom
copilot/ml-dynamic-ensemble-weight-optimisation
Open

Add dynamic ensemble weight optimisation for live predictions#184
ch55secake with Copilot wants to merge 4 commits into
mainfrom
copilot/ml-dynamic-ensemble-weight-optimisation

Conversation

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor
  • Create src/model/stacker/regime.pyRegimeDetector (KMeans-based market regime clustering)
  • Modify src/model/stacker/weighted_ensemble.py — rolling-window weight recalibration (update, _recalibrate_from_buffer) and per-regime weight management (calibrate_regime_weights, predict_with_regime, get_weights_for_regime, set_weights_for_regime)
  • Modify src/model/stacker/stack.py — online meta-learner update (partial_update, partial_update_batch)
  • Update src/model/stacker/__init__.py and src/model/__init__.py — export RegimeDetector
  • Add tests/model/test_regime.py — full coverage of RegimeDetector
  • Add rolling recalibration tests (TestRollingRecalibration) to tests/model/test_weighted_ensemble.py
  • Add per-regime weight tests (TestPerRegimeWeights) to tests/model/test_weighted_ensemble.py
  • Add online meta-learner update tests (TestPartialUpdate) to tests/model/test_stack.py
  • All 74 targeted tests pass; full suite 453 passed (9 pre-existing failures in unrelated network/parquet tests)

Agent-Logs-Url: https://github.com/ch55secake/hyperion/sessions/4976ee1a-d400-4235-a192-cb9a0ec81873

Co-authored-by: ch55secake <87881861+ch55secake@users.noreply.github.com>
@ch55secake ch55secake changed the title [WIP] Add dynamic ensemble weight optimisation for live predictions Add dynamic ensemble weight optimisation for live predictions Apr 21, 2026
@ch55secake
ch55secake marked this pull request as ready for review April 21, 2026 00:06
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.

ML: Dynamic ensemble weight optimisation is disconnected from live predictions

2 participants