Add probabilistic multi-horizon forecasting with conformal calibration#7
Open
xungirl wants to merge 1 commit into
Open
Add probabilistic multi-horizon forecasting with conformal calibration#7xungirl wants to merge 1 commit into
xungirl wants to merge 1 commit into
Conversation
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.
Motivation
Description
app/forecasting/implementingForecastConfigandForecastPipelineto wrap existing backbones and expose flags for quantiles, conformal mode, and regularizers.MonotonicQuantileHeadwith median-centered softplus increments to avoid quantile crossing and produce outputs shaped[B, H, D, Q].app/forecasting/losses.py.SplitConformalCalibratorsupporting horizon-wise and joint trajectory calibration, optional adaptive updates (rolling-window + EMA), and a coverage-drop reset hook inapp/forecasting/conformal.py.app/forecasting/metrics.py.scripts/forecasting_example.py, unit teststests/test_forecasting_probabilistic.py, and README examples; and updated requirements (requirements.txt,requirements-backend.txt) to includenumpy.app/forecasting/__init__.py,app/forecasting/quantile.py,app/forecasting/losses.py,app/forecasting/conformal.py,app/forecasting/metrics.py,app/forecasting/pipeline.py,scripts/forecasting_example.py,tests/test_forecasting_probabilistic.py,README.md,requirements.txt, andrequirements-backend.txt.Testing
python -m compileall app/forecasting scripts/forecasting_example.py tests/test_forecasting_probabilistic.pywhich completed successfully.pytest -q tests/test_forecasting_probabilistic.pyinitially, which failed during collection withModuleNotFoundError: No module named 'numpy'in the environment before dependency update.numpy>=1.24.0torequirements.txtandrequirements-backend.txtand recompiled; unit tests cover monotonic quantile ordering, conformal horizon widening, and point-only backward compatibility (intended to pass oncenumpyis installed in the test environment).Codex Task