scikit-learn compatible quantile forests.
Project description
quantile-forest
quantile-forest offers a Python implementation of quantile regression forests compatible with scikit-learn.
Quantile regression forests are a non-parametric, tree-based ensemble method for estimating conditional quantiles, with application to high-dimensional data and uncertainty estimation [1]. The estimators in this package extend the forest estimators available in scikit-learn to estimate conditional quantiles; they can estimate arbitrary quantiles at prediction time without retraining. They are compatible with and can serve as drop-in replacements for the scikit-learn variants.
Example of fitted model predictions and prediction intervals on California housing data (code)
Quick Start
Install quantile-forest from PyPI using pip
:
pip install quantile-forest
Usage
from quantile_forest import RandomForestQuantileRegressor
from sklearn import datasets
X, y = datasets.fetch_california_housing(return_X_y=True)
qrf = RandomForestQuantileRegressor()
qrf.fit(X, y)
y_pred = qrf.predict(X, quantiles=[0.025, 0.5, 0.975])
Documentation
An installation guide, API documentation, and examples can be found in the documentation.
References
[1] N. Meinshausen, "Quantile Regression Forests", Journal of Machine Learning Research, 7(Jun), 983-999, 2006. http://www.jmlr.org/papers/volume7/meinshausen06a/meinshausen06a.pdf
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 Distributions
Hashes for quantile_forest-1.1.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f16caf2213c71797d7f396974681ea7d9d9f5151fa99357197d773837ca8e4c |
|
MD5 | feaa422d77df9dc6ea0499a7296ce295 |
|
BLAKE2b-256 | d0cb110f6c12efcd85915258d88ab8f28f40e2affa4f09a59a8e1a1b0d33c586 |
Hashes for quantile_forest-1.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ac615180523e761c4434e893b24f0f78641ed73d4c59f1a56d67a8750f98811 |
|
MD5 | 5795c7ebc7d8a98471163a86b05b6de6 |
|
BLAKE2b-256 | b59aa1c12dc2f8805d7c84b460497eb0d66176d05a31e88893fa6ef7a14f5166 |
Hashes for quantile_forest-1.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28c83d44da6bff5bb67d07291746afb5233db203db3252c9769a55cb7069f8c5 |
|
MD5 | 9a331b60fdd1ca987f122d04527ebc3f |
|
BLAKE2b-256 | c519b78ea5948fd56802ea1d08a70bf19e07a03b7e2cea032067bb4a52a7c0ed |
Hashes for quantile_forest-1.1.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d70342c9d0e35c11e2af805565e6424f74724a59cad240192308bbd3db2eb5 |
|
MD5 | b32b9ea1c9ed37d692d9a21a974b68ae |
|
BLAKE2b-256 | cbdcaa37d06365bcfb4a64da1db952bcda98de561706deb032862213cde44f1e |
Hashes for quantile_forest-1.1.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fa6ebb8fcd88821e5078ea6905346252eb64158de2a9d58ff38d054b6ebdca |
|
MD5 | 1cef23fc4be1c5bc49a4b267250af54e |
|
BLAKE2b-256 | 26c6933843d66683dc93405db47f447017562d26484368314f6a06644329fdc2 |
Hashes for quantile_forest-1.1.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e32f1a059f1e56114c32915acee7dbd954ff1d6847343b2302b06c1718496117 |
|
MD5 | 313ceee75ad2015d6443d575945f1d17 |
|
BLAKE2b-256 | fcae421ac873c5120f782e87de8f50059117b6a8fe1e5a68033300b665c4a738 |
Hashes for quantile_forest-1.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d5c5e90ab5395dac99b56a7ce78392d772abea755e8a86107c1d56bbb6b926f |
|
MD5 | 69f6c47e5635a0a83b81611d0a8292ad |
|
BLAKE2b-256 | 2eab5b96f3e142b2febf2c852348fd7ce8bfdcf426565861e08a1e5aff450495 |
Hashes for quantile_forest-1.1.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b18f5b99778a8e3d336af9fcb61b02cc54d211ade6ace8d5d74a88c6c586b0 |
|
MD5 | cb325b973fc355647ca5aebc07b85ad6 |
|
BLAKE2b-256 | 820e53bc1eed8b6db9d5f176f62463bd2399cb91bb12edfc10e00c70edf491bd |
Hashes for quantile_forest-1.1.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a9ee72dc26121e6eeec24ab3a6e633f020e0e8ed675e4c1336f378cda23d53b |
|
MD5 | 25d8a716b05ab0b17a2ffa72c8817ad9 |
|
BLAKE2b-256 | 146562cc5d2f9d935d9834681d3932daf04e0cf8023a8a92852b80d70f354abc |
Hashes for quantile_forest-1.1.3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78374b0d74c4400a47b0b74b7361b19028cd121cc5e20ef7f20e04fb3caed63 |
|
MD5 | 76b4a8c6fe8b1df93d79a89bc6b31191 |
|
BLAKE2b-256 | 277c052317e178e70d0e0e431657ab39c2cfc46852ca321984501c28efe31361 |
Hashes for quantile_forest-1.1.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e54a05da1055fd18ac1c58e82260d8bb609ebf9652801fd8393fa36dbc3d56d1 |
|
MD5 | 144fb5717cdd1921d30d1d148d59b4a8 |
|
BLAKE2b-256 | c42f6c8fae44b13c8df0a24b2b1b103cce9968a1d06505906b3eb723f3de4894 |
Hashes for quantile_forest-1.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3aeeffdd38e832ce5e40c4e2f038b5b8d7f5642a0e862be6f0b2eebfe73d4e22 |
|
MD5 | b847a967a8481e298af93619a514f2dc |
|
BLAKE2b-256 | f3ed3567fcef642f642721206f0e45decda50a810e15476487da955a49d68756 |
Hashes for quantile_forest-1.1.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8dc3a579ef99fc70b30d134aaeb1f6037709844022c4e289e4b8e55f45aa6da |
|
MD5 | d84fce23198e1a96f4267bffd4671836 |
|
BLAKE2b-256 | a55629111e45979c8f1bd136a026caa389279c84386c41b58884e533bf2ce552 |
Hashes for quantile_forest-1.1.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36d23798b9684aee4bfe4b9d7827f771eac4270c73170eeb5ac97cc249337716 |
|
MD5 | 3e3bd2e1b9d967b5ebd0de42a704a643 |
|
BLAKE2b-256 | bd94a3ff4a791ad06c90c63a7ffc08dd0b28acde56faed6595dc650b226ffc9f |
Hashes for quantile_forest-1.1.3-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baaafbac7f7a069acb9849aeb17702941b70fa07028ddbfe61649720d6aadba5 |
|
MD5 | f239631155382a60be6e54728472de0c |
|
BLAKE2b-256 | e3bb615b3095045782813bd12635e2db9a0438f1babd9fdcc23e7e4923273879 |
Hashes for quantile_forest-1.1.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc488b6e4d714b7a4289258385f64598103faad1f87f6c47f74ba8645007dee1 |
|
MD5 | a9279eef48f36780a8cf554b293fb8f4 |
|
BLAKE2b-256 | f6019acb2777f13f7eaace5c6f4dc0042a383879ad34a284c97bcfeb0a4e4819 |
Hashes for quantile_forest-1.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e608f07e6ec11aebe522c468278541432ea914cfb6fba5539b08ce30a56fcd4 |
|
MD5 | 7d67b030eeec0923ff207717ca216a49 |
|
BLAKE2b-256 | b282835029a8eed754b60a6a5e6a5e360fe8c9f31ea4123e9c6fd49e7030d9c6 |
Hashes for quantile_forest-1.1.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b246eae890540d4722f2648153df2d12c8b69f18751ee118290a37879ac84592 |
|
MD5 | 742a7bd75a9bf5f75c18e428ec9874c3 |
|
BLAKE2b-256 | a011eaa1ffa7db28af88f256a1bd38330bbc8050fa544040d7407f36d91e30ae |
Hashes for quantile_forest-1.1.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97545735a14c96bd6c28210f494ab0274aa790e3b77414f408f911e74947573a |
|
MD5 | a4eebbac3d2652a44bc167ada5976b09 |
|
BLAKE2b-256 | f2552d769df141ec716dcb07b8910d0707baf1623745bf13712ee8d7b097ec6f |
Hashes for quantile_forest-1.1.3-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab69fb2e7580b768c2ca2a9a67f02d3d3ad7e54d76a943c63c1407136d59240e |
|
MD5 | d0703090374f33d8400c9b4d473f3bf5 |
|
BLAKE2b-256 | dd3985f28a7960d0cb666747e8ffa223e6343e2a47cd36811bd4b8e3bee6f4da |