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 (QRF) 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 are performant, Cython-optimized QRF implementations that extend the forest estimators available in scikit-learn to estimate conditional quantiles. The estimators can estimate arbitrary quantiles at prediction time without retraining and provide methods for out-of-bag estimation, calculating quantile ranks, and computing proximity counts. 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.2.2-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d933291958ad5414a7e0006e07f65d104c310be6f09bdb5c1729d2758a7f7e7 |
|
MD5 | 4df10d0bd3dface4c476319c82f17c0c |
|
BLAKE2b-256 | 28ce5f5ce1f447bd0b4b8919b01c01587f06ced86a039e9f7723640dd6e61cdb |
Hashes for quantile_forest-1.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61679752e9b22e894c5d4de988211ed059e0a83d9d5901dff7796172556d9e25 |
|
MD5 | d662225129b95b18605a07a9d58fb01a |
|
BLAKE2b-256 | e4ff83caa9d6d9580bdf0a7dbd8537b04574c672052205e85cfe35c8ae50b618 |
Hashes for quantile_forest-1.2.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3723c2251136e9a3b03fda9e11355ed3446c411c19ee854ff5927295e391fcc9 |
|
MD5 | 02aec34a7a274845fafb71f3e563d3e5 |
|
BLAKE2b-256 | 019b8c196baa81fd836079f5953e7873ae45b8b79857806b3a09bff214191f81 |
Hashes for quantile_forest-1.2.2-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 524db09a7123bbc5ea2c26ab19dac783a9e6eef3e2573d84e0f3befe436fe2f9 |
|
MD5 | 666e24d86fdf401c33da8dff6fa7b712 |
|
BLAKE2b-256 | b4665511b15a0322f7481cce400c6f8b345aecf8ef8788598c7d67966f14f46b |
Hashes for quantile_forest-1.2.2-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f31a2776d11b3d71129ecf100196f22f8c9f7357d4bdf81e5690f41e8bae7ca0 |
|
MD5 | cb5f257d8798b6269efea0297646165a |
|
BLAKE2b-256 | 639057bb924c35983857518e9fd4c8a2438e58a52c130725002a451f91f61ceb |
Hashes for quantile_forest-1.2.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54ffcbc92aa2121f6d1b5231ffbed1c692ecf0419351f384c1c4b233d2ecd54 |
|
MD5 | 292e0e598476304badc761b6440d9414 |
|
BLAKE2b-256 | 74f0b21740368c1f8acef6b175f3339e637876f879256d1e9d4a2b542330646c |
Hashes for quantile_forest-1.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 592273a034a6712b78e8e75cd9de92159a75b6943cd0378f59bb505953c1367d |
|
MD5 | 504759bc4e14537fa9cf465b17a0c17a |
|
BLAKE2b-256 | 7a30c4af53970e629246ee467e3100bfae13505fbe7aaf04b3754fa7417d3e20 |
Hashes for quantile_forest-1.2.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc1a3f9af728ca5f88aefb8ba74bb37bde2e7d993da71a1163c4ad6500038944 |
|
MD5 | 7f0655f8af4f2a0de27c6a37be1ab808 |
|
BLAKE2b-256 | ec9c53059a3471f4872e5073cf37181cf9284b9d9c0ff0df495640e71d36ca64 |
Hashes for quantile_forest-1.2.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c01aedd623d4dc7a59d0612b772340134062e0dbf90f5757323d93487888944d |
|
MD5 | b4d0822bbab5a7ceee8db224123cb658 |
|
BLAKE2b-256 | d3066607c6d3733f33ba2a58ee06febf2e7cba4793e3e387eff3371bee76c3b9 |
Hashes for quantile_forest-1.2.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cea1b6cab196f3536e53d2c4f265ed4911347368746348924999c7b56779dd84 |
|
MD5 | 8b283f4af4d649f0f74fb177c6686673 |
|
BLAKE2b-256 | c1296d678725acc4820844c4f46028bdf17778daf5fb3ee75e9ee315c6689456 |
Hashes for quantile_forest-1.2.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55eac38f7602370c18821b528e2d68a5a179a117f0acbeffa77ea7c130d4bc7b |
|
MD5 | 34716cb9a0417f67061ac0a5f7e29fed |
|
BLAKE2b-256 | 11ca46c9807676a3bb8525523ad0db003122be52c53dedeb09d7fe9247df429c |
Hashes for quantile_forest-1.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a752d72d9cd7e68e783819801d970343be624b473c5f103276569d8747b3dce3 |
|
MD5 | a359ad21b3caec3ba30c9e325d73f653 |
|
BLAKE2b-256 | 24608bb731709883e14d7f84b4567b872e494bb35865cb939159a30ab18645df |
Hashes for quantile_forest-1.2.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed2923ac1367807bcf06a9d3bda01a0bf0778ee54d43ca439a72fcf15a613ec |
|
MD5 | 1d8a6c514a50f6b094fc1c18fb22aeec |
|
BLAKE2b-256 | e7629fcc7753e8a0b1d5623f026159ad9901bc4e367796f9624880242dab0402 |
Hashes for quantile_forest-1.2.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3536c33ca96c16dbdfc10774002d38c9e93863a0fbcb10d494593d011ce990 |
|
MD5 | d713d7f098f98236e41f071e5d66c635 |
|
BLAKE2b-256 | e1b55434b1b62d4b29be1d41a9f9d0f4a689f18bdbf6c97dbfca3e82cfb4a051 |
Hashes for quantile_forest-1.2.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b3e1af1f2e6b88ef393efb79acf3997dc6777395f58a2919175cb1efacce3e5 |
|
MD5 | b38e53d33505356cd61bb823d05bfcbf |
|
BLAKE2b-256 | 17a77da5f1444b7f21923cbac38b31499d332287c42d79950fd190326f08d291 |
Hashes for quantile_forest-1.2.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 587ec228c1afee81104941860f49067ca266dd0d2ce6063412f48c3bc9009496 |
|
MD5 | e7097c0b9be13ea0eb080db5f0624417 |
|
BLAKE2b-256 | 2d3586f06fa4a03784b8471cbf23cb4b34538bf39de14590f1259c92feaf9c8c |
Hashes for quantile_forest-1.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f45b5f6fbd05f3bdd06c394a87447881e7edbd1af24c1ce59af51b1dd3b72a3 |
|
MD5 | af01ef74b427646fced5740e3d848eac |
|
BLAKE2b-256 | d5be004a72d9518ee5530c5448bb529ea631ea692ad383f2d112ceabf57dcd9a |
Hashes for quantile_forest-1.2.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e2958d0b34a9d8dea5ae9c6805741c5e15815b894cbacdc1e853643e53bdb00 |
|
MD5 | c2ab855aa3bbbbbe4ca11d15286ac83c |
|
BLAKE2b-256 | 0fe9b352c9a3a8a8694bdc35f93d042246c33f802cd629ddb282bb7eda5b5ca3 |
Hashes for quantile_forest-1.2.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 121cd79209364a7d087e1b2e1c44a7d0210dd6c4746289856d13617ffe36a567 |
|
MD5 | 18d1f7e77586e6979290c8108a606ade |
|
BLAKE2b-256 | 644a0cc7919bf45575f3dbafea0c8ef59d38a042e8e9a83d7b787715c3db301b |
Hashes for quantile_forest-1.2.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d32f8c074d86be42412f3c051bc833f7ef9ac54e221a696f270d89b2cc15588 |
|
MD5 | 76eb6f462b1e945b15b133de80f5fc2b |
|
BLAKE2b-256 | e99737c8126c0113fb0e2e058c9336f6423aafddb65fa7a9955593a3f73af2ea |
Hashes for quantile_forest-1.2.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7519d72854bc18a13f03b30dbc28fe8b129eb0cf703e97f43111c4188437648f |
|
MD5 | d30ef1fe428691de3b75b9ad4620878e |
|
BLAKE2b-256 | c0a880478cae79efd1be3b979ca1e94e81c45cdfe36f773d7388d089b0431d2e |
Hashes for quantile_forest-1.2.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08fcc0f4bde5e8021a5608d44806f17923efd6b8976c9a8971f8616ef09c4ab6 |
|
MD5 | 47c8a5106897b1092d8ac6ee588e9791 |
|
BLAKE2b-256 | d376976666309c2ab854afdbee094d63d36549e5657aaffe62372eb1578fbdbe |
Hashes for quantile_forest-1.2.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d89df5e724aef8f4f55165465f4269bad23cce10f152bd6c1341e1dc5e6a7a |
|
MD5 | 4d0dba76a11350333852c0bc734d534d |
|
BLAKE2b-256 | 6e1b6d26afb200995a4ffa2fe41d66084bbe4d79d6bf0f03ffcc0e790ec2e6f5 |
Hashes for quantile_forest-1.2.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3285bc737ff47369c42fd800a34ccc86d00c59d1f0b50f80f9a4cfc12fd517 |
|
MD5 | ac721b64082ec551ea5cffce4216a7ec |
|
BLAKE2b-256 | 94759d8028d763f95eb65f0be84b7c8b26ef158d5da11d69e6ec533670ff76d1 |
Hashes for quantile_forest-1.2.2-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff40430612d85888a66bd4750d0c1ce844a5351ea2cc3ae6b6d46bbdb70877f2 |
|
MD5 | 955eace15a41a86b759c13ad952d43ba |
|
BLAKE2b-256 | 8c232ac3691cba4e3dcfa8316f7616438c753516f640324d2348bdd81b83a857 |