Code Monkey home page Code Monkey logo

rqr's Introduction

Relaxed Quantile Regression: Prediction Intervals for Asymmetric Noise

License: BSD 3-Clause

This repository contains the code associated with our ICML 2024 paper where we introduce a new loss to train Deep Learning models for interval prediction. The Relaxed Quantile Regression (RQR) loss directly learning of the intervals without the intermediary steps of estimating quantiles.

Experiments

Setup

Clone this repository and navigate to the root folder.

git clone https://github.com/TPouplin/RQR.git
cd RQR

Using conda, create and activate a new environment.

conda create -n <environment name> pip python
conda activate <environment name>

Then install the repository requirements.

pip install -r requirements.txt

Data

The datasets mentioned in the paper can be found in the data folder src/data/. The datasets have to be unzipped e.g.

unzip data/datasets.zip -d data

Quick Start To quickly get started with the RQR loss objective, check out quick_start.ipynb which contains a simple implementation of the objective in Pytorch and an illustration on known noise distributions (i.e. reproducing Table 2 from the text).

Running Width Experiments

The hyperparameter fine-tuning can be run for all the datasets and losses proposed in the paper with the following command :

python finetuning_parallel.py

Results and hyperparameters of these experiments are saved in an optuna database results/finetuning/recording.db.

The optimal hyperparameters found can be used to recreate the benchmark presented in the paper with the following command :

python testing_parallel.py

Running Orthogonal Experiments

The orthogonal experiments implementation is a modified version of the official OQR repository : https://github.com/Shai128/oqr. It can be run for all the datasets and losses proposed in the paper with the following command :

python src/RQR-O/run_orthogonal_experiment.py

Citation

If you use this code, please cite the associated paper.

@inproceedings{
      pouplin2024relaxed,
      title={Relaxed Quantile Regression: Prediction Intervals for Asymmetric Noise},
      author={Thomas Pouplin and Alan Jeffares and Nabeel Seedat and Mihaela van der Schaar},
      booktitle={Forty-first International Conference on Machine Learning},
      year={2024},
      url={https://openreview.net/forum?id=L8nSGvoyvb}
}

rqr's People

Contributors

tpouplin avatar alanjeffares avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.