Awesome
Reliable Predictive Inference in Time-Series Settings
An important factor to guarantee a responsible use of data-driven systems is that we should be able to communicate their uncertainty to decision makers. This can be accomplished by constructing prediction sets, which provide an intuitive measure of the limits of predictive performance.
This package contains a Python implementation of Rolling Risk Control (Rolling RC) [1] methodology for constructing distribution-free prediction sets that provably control a general risk in an online setting.
Achieving Risk Control in Online Learning Settings [1]
Rolling RC is a method that reliably reports the uncertainty of a target variable response in an online time-series setting and provably attains the user-specified risk level over long-time intervals.
[1] Shai Feldman, Liran Ringel Stephen Bates, Yaniv Romano, “Achieving Risk Control in Online Learning Settings” 2022.
Getting Started
This package is self-contained and implemented in python.
An older version of this package can be found in rrc-old.
Part of the code is taken from the oqr and mqr packages.
Prerequisites
- python
- numpy
- scipy
- scikit-learn
- pytorch
- pandas
- smac
Installing
The development version is available here on github:
git clone https://github.com/shai128/rrc.git
Usage
Rolling RC
Please refer to notebooks/regression-simple-example.ipynb for basic usage.
Demonstration of the proposed method in an online depth prediction task is provided in notebooks/depth-estimation-example.ipynb
Analysis of the proposed method on benchmark datasets (both tabular and high-dimensional) and comparison to competitive methods and can be found in notebooks/visualize-results.ipynb.
Reproducible Research
The code available under /reproducible_experiments/ in the repository replicates the experimental results in [1].
Publicly Available Datasets
-
KITTI: The KITTI Vision Benchmark Suite.
-
Power: Power consumption of Tetouan city Data Set.
-
Energy: Appliances energy prediction Data Set.
-
Traffic: Metro Interstate Traffic Volume Data Set.
-
Wind: Wind Power in Germany.
-
Prices: French electricity prices [2].
[2] Margaux Zaffran, Aymeric Dieuleveut, Olivier Féron, Yannig Goude, Julie Josse, “Adaptive Conformal Predictions for Time Series.” 2022.