Skip to content

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

Draft
StatMixedML wants to merge 26 commits into
mainfrom
conformal
Draft

Add conformal prediction intervals support for Hyper-Tree models#9
StatMixedML wants to merge 26 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 90.09371% with 222 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.32%. Comparing base (46bc852) to head (a1947a9).

Files with missing lines Patch % Lines
hypertrees/models/HyperTreeNetARMA.py 79.94% 36 Missing and 34 partials ⚠️
hypertrees/models/HyperTreeARMA.py 81.08% 33 Missing and 30 partials ⚠️
hypertrees/models/HyperTreeETS.py 91.02% 13 Missing and 16 partials ⚠️
hypertrees/models/HyperTreeNetAR.py 71.66% 9 Missing and 8 partials ⚠️
hypertrees/models/HyperTreeSTL.py 60.97% 13 Missing and 3 partials ⚠️
hypertrees/models/HyperTreeAR.py 86.41% 6 Missing and 5 partials ⚠️
hypertrees/models/HyperTreeTSB.py 97.36% 2 Missing and 6 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.44% 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%   91.32%   -2.05%     
==========================================
  Files           7       15       +8     
  Lines        1207     3332    +2125     
  Branches      207      593     +386     
==========================================
+ Hits         1127     3043    +1916     
- Misses         42      149     +107     
- Partials       38      140     +102     

☔ 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
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