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 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 Distributions
Built Distributions
Hashes for quantile_forest-1.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7695962f9e3e9cba177ce31224fcf8d34a237b2c2987c183709a7d569893942 |
|
MD5 | 8e85d7fc7881499096714b3a38a520b3 |
|
BLAKE2b-256 | d8c57e2adf6f30f96cf6e8e550859a2dc1382720e24a6592563aa94ffae5cfa7 |
Hashes for quantile_forest-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcf7ec25010262f9a2b6e5ffd6aa0a3dbbf6ad5b45ec67435e841bc61e373b17 |
|
MD5 | 0431848e2e59709463f36be676411797 |
|
BLAKE2b-256 | c737387889eb0f30f295809872eb023d81fec2ba2b34d2a9a01aa70b3821afaa |
Hashes for quantile_forest-1.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35126790f6a778ec967b39f034836260f2038940fc83dccb2670944cd81a92e3 |
|
MD5 | 97304cdc604eb0ea6ce4bd8242951071 |
|
BLAKE2b-256 | ee41ee257b79e738a26a79a9352953b3639477a5cca3badc259f63b85692161f |
Hashes for quantile_forest-1.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a0e206592d5aeb9d149af751f5a9dca31c49b8f499d598e84bfe490e3ef9df |
|
MD5 | 4e3dcdbbac3cf4079d044526d9811123 |
|
BLAKE2b-256 | 3f8c8be1182b3c2c23e2e04e150dd882d3be6b42d15c87921d1295835b6630f9 |
Hashes for quantile_forest-1.1.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 604dd6af08137b8ab8e53f26f6fe438f82926a8b65ef8dcbb32b80ec05279b40 |
|
MD5 | bfef61c2499decb44871d07e40ede5c8 |
|
BLAKE2b-256 | 1394f3805b7d8f7d32ad885a2d5150e8e6951811e7e7ff909161c09c74a2e2d7 |
Hashes for quantile_forest-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a16ac015edd8f8a8602940e8d47b87991958116abd6df1599bc7a570d47f648b |
|
MD5 | 34f948b7f880f963b0fe08e28c71b1a6 |
|
BLAKE2b-256 | ad68b3649031adfbdd888c088d601f9b74b183544090bf4f4baa987a50e7ea92 |
Hashes for quantile_forest-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13eee671a2fa6c2b10844643a71dfe95418212ce0fe5931a72be9d78388ae0ac |
|
MD5 | 8b7692f51ba08a90235b41e9d38811ec |
|
BLAKE2b-256 | c9cf0eb28972ea04ed22ea41057065112d848a92b104f218e6c4a14b43a47506 |
Hashes for quantile_forest-1.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bae1a8bfc9e902cba4b0f6cf1821643086b6799f6ce141dfa5ce1d096094852 |
|
MD5 | 13bc87efb7fa03b3d6af0f459df91370 |
|
BLAKE2b-256 | 949de114e65610b873c29f6954d244aed883dca008ba16bfd101026c43410158 |
Hashes for quantile_forest-1.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dfb3a648c9d4d57a24518336aafb7fd51d06a3d946b5d589132f50cea3b998b |
|
MD5 | 8d614a5fdf5939b51d7b3593068408d3 |
|
BLAKE2b-256 | 1be0a5093dc7ce08fd28f4d07bfb891fe07e64b0b0394e64d887bb5cc0be55b3 |
Hashes for quantile_forest-1.1.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd15e2aee60ae0ab638a4fac0e45a28ae21b1d9e9562689c8b6ababa497feab |
|
MD5 | e7a19ed3c8d31b0a1440dfea66f36dac |
|
BLAKE2b-256 | 3719a3c249bcd76baa8b2354c0ae725897cfbe0505dbd8c2220c1e3c20e898c2 |
Hashes for quantile_forest-1.1.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6d4a1e71e5e6da4decac205d5c82724d4fc15dbcba173814be9b73df233deb |
|
MD5 | 9e83ef48fa68336b9582c8fa928cb5b4 |
|
BLAKE2b-256 | 99e557b8f174b2b343630286f4cfa5a4e76963bb77ae602e93a28135c321536d |
Hashes for quantile_forest-1.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f5c41314b729d6972aac75eb9f941d0f645cac28fab133e48c7c0a4f7c5560 |
|
MD5 | cf20048147d1425460544cd4edd8b260 |
|
BLAKE2b-256 | ecf563dffeba4142a08542933e01864e3472ca0c1817ad47dbcd7fea3249fd19 |
Hashes for quantile_forest-1.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808067b62dd7449a0b02bdb73d27e9955d05abd0f5db9b5e6dbd54d2662f4162 |
|
MD5 | b4198d4e2ed5d7ee9212caeff81dcb77 |
|
BLAKE2b-256 | c643691d625b9cb487cf02b2b5bb3c10391f8dc8c99acad190453f2f5f3bc5d5 |
Hashes for quantile_forest-1.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021decbdd84563543d9cb9e186e59171d6356189d84fb7737e74066d35550085 |
|
MD5 | 83e6e5478c65fb628d82478110253c7f |
|
BLAKE2b-256 | 2e00e50ee0ed0661eca61e733a68181465366a745fd0b0aeb878662374e5e42a |
Hashes for quantile_forest-1.1.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c371868517dcb0262229ba0799ea0fec9bfbfb70ec76a70814064de390311242 |
|
MD5 | 149d6ed4b2bf71beafefe3a8f5f6f85b |
|
BLAKE2b-256 | 15bfa0c03a3efe9030c567447716b414fd712e10057e3e340161edc3f7f64897 |
Hashes for quantile_forest-1.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0067f185a84d023f0fab2d5439c881672ab69fb29e6ef7be546a39689649bad3 |
|
MD5 | d01321205df6fe296a1479cbdf7e406a |
|
BLAKE2b-256 | 540472fd05ac6dbe5a94f540eeb33ab2c5e20c4a90b4f9cd960a8fb5c4c99054 |
Hashes for quantile_forest-1.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08dbc8622e17575b06728261db9b041c38a7b3876fd63ad09dd07676d9a5b6d |
|
MD5 | 3b8f3f1344b8a4609fd55b831918fda9 |
|
BLAKE2b-256 | 079e3a6d44c6b181cfc744b990d105f2cf5895c32911c7d716ae7d607e18de80 |
Hashes for quantile_forest-1.1.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21deb45ec41c9f7096fa92db9fe8511d8d68c5c02257524508acfe3384d78b15 |
|
MD5 | 197a93c8a19dff36b7a2127d13918b39 |
|
BLAKE2b-256 | 77f0c75812c85250abfcfbd6bc1f19c18968c68cd95803da08126b8771033754 |
Hashes for quantile_forest-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a6478c14b63ef36c17e3bf83d0962a6da4ee8719525e511ff3f483f0d7f876a |
|
MD5 | 8d66cd6dfc9dd31567ac9b14e857ca5b |
|
BLAKE2b-256 | f675a30327ce3b14a6960bba4df7466391faaa5d89e3ea9b92f41c16b6cbfad2 |
Hashes for quantile_forest-1.1.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8783dd894418f5dd9eb2df26c5163575c708969f32d2123313c6b389a6a9d770 |
|
MD5 | b5ceaefaf8973d70a5b1724dd1821a9d |
|
BLAKE2b-256 | b844773eda70507424652dd303abf33dd87309eebbbb9ae7e8b206da8c6b48ce |