Deep Continuous Quantile Regression
Project description
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:
- fitting a mixture density model
- 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 algorithmsdeepquantiles.presets
: a collection of pre-configured estimators and settings used in experimentsdeepquantiles.datasets
: functions used for generating test datadeepquantiles.nb_utils
: helper functions used in notebooksnotebooks
: Jupyter notebooks with examples and experiments
Tests
Run
make dev-install
make lint
make test
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deepquantiles-0.0.0.tar.gz
.
File metadata
- Download URL: deepquantiles-0.0.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e8d419b3a91d17fe0fe428a1d3ab6e418c27429796e694d855ebdf782121fde |
|
MD5 | 6a73547c72cf6f27994da19dbaba248c |
|
BLAKE2b-256 | c6d712c742f3e161307412b7f843a319f163d4bbd7f32dfe58d86c201d9b39f7 |
File details
Details for the file deepquantiles-0.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: deepquantiles-0.0.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38f899fee424729ac2310eda3ee9ba55e59954ed03f0d942e56a5f350b7f170 |
|
MD5 | 0d8d6b5b22ca27320363c314268a9118 |
|
BLAKE2b-256 | 4ecb8c72f4a82208d04610949bd5394f8db2c31e7c01f69f0b843796bd196675 |