Skip to content

Add conformal prediction intervals support for Hyper-Tree models - #9

Merged
StatMixedML merged 32 commits into
mainfrom
conformal
Jul 14, 2026
Merged

Add conformal prediction intervals support for Hyper-Tree models#9
StatMixedML merged 32 commits into
mainfrom
conformal

Conversation

@StatMixedML

Copy link
Copy Markdown
Owner
  • Introduced ForecastIntervals class for configuring and calibrating prediction intervals.
  • Updated HyperTreeAR, HyperTreeETS, and HyperTreeNetAR to support conformal intervals.
  • Enhanced forecast method to include interval columns for specified confidence levels.
  • Added unit tests for conformal prediction functionality.
  • Updated README to reflect new features and usage examples.

- Introduced ForecastIntervals class for configuring and calibrating prediction intervals.
- Updated HyperTreeAR, HyperTreeETS, and HyperTreeNetAR to support conformal intervals.
- Enhanced forecast method to include interval columns for specified confidence levels.
- Added unit tests for conformal prediction functionality.
- Updated README to reflect new features and usage examples.
…er window

Revert CI torch install to --extra-index-url (matches passing main)
@codecov-commenter

codecov-commenter commented Jun 3, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 95.71429% with 102 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.17%. Comparing base (46bc852) to head (533f6a1).

Files with missing lines Patch % Lines
hypertrees/models/HyperTreeETS.py 91.18% 13 Missing and 16 partials ⚠️
hypertrees/models/HyperTreeNetAR.py 71.66% 9 Missing and 8 partials ⚠️
hypertrees/models/HyperTreeSTL.py 90.18% 9 Missing and 7 partials ⚠️
hypertrees/models/HyperTreeAR.py 86.41% 6 Missing and 5 partials ⚠️
hypertrees/models/HyperTreeTSB.py 97.36% 2 Missing and 6 partials ⚠️
hypertrees/models/HyperTreeARMA.py 97.89% 2 Missing and 5 partials ⚠️
hypertrees/models/HyperTreeNetARMA.py 98.28% 1 Missing and 5 partials ⚠️
hypertrees/conformal.py 97.39% 1 Missing and 2 partials ⚠️
hypertrees/models/HyperTreeNetVAR.py 98.43% 1 Missing and 1 partial ⚠️
hypertrees/models/_var_base.py 99.45% 1 Missing and 1 partial ⚠️
... and 1 more
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   93.37%   95.17%   +1.80%     
==========================================
  Files           7       15       +8     
  Lines        1207     3462    +2255     
  Branches      207      623     +416     
==========================================
+ Hits         1127     3295    +2168     
- Misses         42       78      +36     
- Partials       38       89      +51     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@StatMixedML
StatMixedML marked this pull request as draft June 3, 2026 13:40
  - Fix HyperTreeNetAR training a hidden model copy (lgb.train params deepcopy):
    new NoDeepcopyObjective binds objectives to the live instance, replacing the
    class-level network state that leaked weights across instances
  - HyperTreeAR: add hessian_method="analytic" (new default), closed-form
    grad/Hessian via the AR fit's linearity
  - HyperTreeETS: add seasonal_init="classical"|"legacy" (statsforecast-style
    init vs. verbatim pre-0.2.0; experiments default to legacy), cache the init
    per dataset, validate seasonal positions
  - HyperTreeSTL: make the trend-smoothing window learnable, fix short-horizon
    crashes
  - Reject nn.L1Loss in all models (zero curvature breaks Newton boosting)
  - Mask-aware conformal residuals; reject duplicate dates; docs and ~30 tests
  - HyperTreeVAR / HyperTreeNetVAR: VAR(p) over aligned panels with
    per-series scaling and a restricted GVAR-style factor design
    (type="factor")
  - HyperTreeTSB: intermittent demand with feature-driven smoothing rates
  - Additive-seasonality option for HyperTreeETS (ets_type="additive")
  - Example notebooks, README table rows, and release notes
  - HyperTreeVAR / HyperTreeNetVAR: VAR(p) over aligned panels with
    per-series scaling and a restricted GVAR-style factor design
    (type="factor")
  - HyperTreeTSB: intermittent demand with feature-driven smoothing rates
  - Additive-seasonality option for HyperTreeETS (ets_type="additive")
  - Example notebooks, README table rows, and release notes
  - HyperTreeVAR / HyperTreeNetVAR: VAR(p) over aligned panels with
    per-series scaling and a restricted GVAR-style factor design
    (type="factor")
  - HyperTreeTSB: intermittent demand with feature-driven smoothing rates
  - Additive-seasonality option for HyperTreeETS (ets_type="additive")
  - Example notebooks, README table rows, and release notes
@StatMixedML
StatMixedML marked this pull request as ready for review July 14, 2026 11:46
@StatMixedML
StatMixedML merged commit cb29603 into main Jul 14, 2026
13 checks passed
@StatMixedML
StatMixedML deleted the conformal branch July 14, 2026 11:46
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