Add risk-controlling prediction sets - #30
Open
sgreenbury wants to merge 4 commits into
Open
sgreenbury wants to merge 4 commits into
sgreenbury wants to merge 4 commits into
Conversation
Introduce bounded-loss RCPS calibration with a Hoeffding upper confidence bound and per-example coverage loss. Support asymmetric scaled intervals and raw ensemble forecasts through quantile or standard-deviation interval families. Configure alpha and delta grids before calibration so fitted scales and prediction axes are explicit. Keep structural loss and bound contracts open to future extensions, and document per-pair guarantees alongside the existing conformal approaches.
Use semantic tensor aliases in the risk-loss interface and document the ensemble CP and RCPS APIs side by side. Add a regression test for the expected relationship between confidence level and fitted scale.
sgreenbury
marked this pull request as ready for review
August 11, 2026 14:12
Keep the additive Hoeffding term on the same display-math line so Markdown renderers do not interpret its leading plus sign as markup.
Clarify that scaled-interval inputs contain a centre and non-negative distances from it, rather than interval endpoints.
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.
Summary
Testing
uv run pytest --maxfail=3uv run prek run --hook-stage manual --all-filesCloses #22