Skip to main content

Deep Continuous Quantile Regression

Project description

PyPI version Build Status Coverage Status

Deep Continuous Quantile Regression

This package explores different approaches to learning the uncertainty, and, more generally, the conditional distribution of the target variable.

This is particularily importent when

  • the mean of the target variable is not sufficient for the use case
  • the errors are heteroscedastic, i.e. vary depending on input features
  • the errors are skewed, making a single descriptor such as variance inadequate.

We explore two main approches:

  1. fitting a mixture density model
  2. learning the location of conditional qunatiles, q, of the distribution.

Our mixture density network exploits an implementation trick to achieve negative-log-likelihood minimisation in keras.

Same trick is useed to optimize the "pinball" loss in quantile regression networks.

Within the quantile-based approach, we further explore: a. fitting a separate model to predict each quantile b. fitting a multi-output network to predict multiple quantiles simultaneously c. learning a regression on X and q simultanesously, thus effectively learning the complete (conditional) cumulative density function.

Installation

Install package from source:

pip install git+https://github.com/ig248/deepquantiles

Or from PyPi:

pip install deepquantiles

Content

  • deepqunatiles.regressors: implementation of core algorithms
  • deepquantiles.presets: a collection of pre-configured estimators and settings used in experiments
  • deepquantiles.datasets: functions used for generating test data
  • deepquantiles.nb_utils: helper functions used in notebooks
  • notebooks: Jupyter notebooks with examples and experiments

Tests

Run

make dev-install
make lint
make test

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deepquantiles-0.0.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

deepquantiles-0.0.1-py2.py3-none-any.whl (11.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file deepquantiles-0.0.1.tar.gz.

File metadata

  • Download URL: deepquantiles-0.0.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for deepquantiles-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ac0e80171714e93d30216f3800b419b651282c781f4a4fb7192baa50c5c433d5
MD5 fdc38230b957658030ecbfdc6e596511
BLAKE2b-256 c97d7793aa04260fca74e5557db053b46367d8ff5334d84879345a65a77d4be9

See more details on using hashes here.

File details

Details for the file deepquantiles-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: deepquantiles-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for deepquantiles-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 beedd3ea7ecc1564862bc48001cd67c1eff8c4e6c69c9d319cb5bc23d92c325b
MD5 76d31348a40f27e865d1b28a768e7fb6
BLAKE2b-256 ce479b573a595e5259b97e453153344e1bd39470ab2a500343df8b2cf5ffd039

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page