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.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65d9f8218c2e29407c6bf872f8522eaee1c746d0502d53f321cf21b3690cd20d |
|
MD5 | 382218254a287f05295ec1a58bbfab34 |
|
BLAKE2b-256 | 96d58666eea137ae7a86ccf05d0399dd0564dcb791008a73dadfffc60e44a018 |
Hashes for quantile_forest-1.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ec00337a41b43b228028846a704161f176dd20f6e1116b311887a2a9cf49c2 |
|
MD5 | 6c63989ec0eee129ce16887288277de8 |
|
BLAKE2b-256 | 8f5f128b6a6b6e7b3af339112a9398f97245ad97d398fb70c991e72875d4c5c0 |
Hashes for quantile_forest-1.2.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 910a55e2e49fa4b19d42e27ff15137de85617029c338df08ed9ed9916e96f850 |
|
MD5 | 0fca44d17bd908ac8785f682e1a5c133 |
|
BLAKE2b-256 | 1ac15aa36a0f11362da92775e7e4b5996cb08bd55765029db18fc0094232a0b5 |
Hashes for quantile_forest-1.2.3-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8fe47b368de7cf827ad3a294ad8690fed0bc0cac306b8a0be4eecdd183d2e35 |
|
MD5 | 086d8e5b7150173e99f95990fe68a758 |
|
BLAKE2b-256 | 2da6515262032249781be2b6bdd5f1283a06693f1dc8878f4f396e1a9b456fe3 |
Hashes for quantile_forest-1.2.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fc3ccfb24063c0f9f2b8f7912a398ee5989b85b6320ee711603c23e2b153a4 |
|
MD5 | 2e0d6323d00bf8441f37c7d4af4f5e9e |
|
BLAKE2b-256 | 02bd65c65d9452b17553ed244c3671ba131e94a6d9772abafd9026e8f014b1c3 |
Hashes for quantile_forest-1.2.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cf7b110abd37998ab4bb598aaa10f86f85cc47ee52262e7e3402ce7b70aa84e |
|
MD5 | ecdedb783708d8e1a255dd573d7702b1 |
|
BLAKE2b-256 | d5ad7aac818200cf190042d252990501a022adf900cc6b31033ee291f1f54d63 |
Hashes for quantile_forest-1.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5019257eaa40cba50b5c0865392c36171fbb4ea3504ef4975105f8bae4cbce3 |
|
MD5 | a45a909655f2648a3e92257474a48f41 |
|
BLAKE2b-256 | f4e80b2d91444892773880c414413fd665923cfc1741951e8aae05384c86154a |
Hashes for quantile_forest-1.2.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6383edc04de5dfb44e6e831a91a0d4b1647aca9e39ac70cd11443ef9f8ed6b4f |
|
MD5 | 9b2acc0e4f9757c77535673e5a540220 |
|
BLAKE2b-256 | c23d708894bd64977a52d5a3f9269a8ef929bd514b1897add6bdd35f30cc030e |
Hashes for quantile_forest-1.2.3-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d43e21e84c75a74769b3bb7b5b2a13dd62be7a12867376e3b51d7cd33eaea8db |
|
MD5 | d3fceb0e24689c99bd27ca1c297956be |
|
BLAKE2b-256 | 951b82d7ef2118e91d4908124680235ad4d4816ec2149dc2268b9d0bf5d70858 |
Hashes for quantile_forest-1.2.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08c520674c3a0b27da39e7d4d82fed49753d2f5b2fc45054add2f554794f541 |
|
MD5 | 24dc0e3820b38cec79a09534bcda144b |
|
BLAKE2b-256 | c9c9b57501b25a0a10e1f9850aea7de8f5e0e5ada3d3a7b85c28998adc74ef91 |
Hashes for quantile_forest-1.2.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5fba01254aa699249a8995ba7b36009d6580b76e3150956c2f34a431cbcb0b |
|
MD5 | 04e4c8657e73d13ee5a256b0001808e7 |
|
BLAKE2b-256 | ae19a9f54ac2778a8dda74f4f20ab1b12c3848171d21765b50f34afa1e3675fc |
Hashes for quantile_forest-1.2.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be456e52c812cbd5ed76102899caedd908f51183a202cde5879420cf93d17d12 |
|
MD5 | 2f734ebc1d0286701b3eaa89c132361b |
|
BLAKE2b-256 | 278b877ed6cb174e6a7e9dbee780f713506a1c2b15db3874ead04b029ddd58b2 |
Hashes for quantile_forest-1.2.3-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c9dd838f18093d015270e7f0787103807466e9778b58d64ef82de2862b75e32 |
|
MD5 | 60a3eea1108bb97570b7296ce30c9ff1 |
|
BLAKE2b-256 | 30adc2af9751d5ceacc746f9ed7e3a8e59db15583eda168973c15e04ca9d0b02 |
Hashes for quantile_forest-1.2.3-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcef44d22fc3b5154cfc412e3209b84b27ebbccde3f1504ea5ad9206ee191f79 |
|
MD5 | d558e16c72f16377cf11cfa56e89e981 |
|
BLAKE2b-256 | 31b34b19fe6f1db1eae1a3088b35e1afdceaca21430eeab749b8e8e9d220637e |
Hashes for quantile_forest-1.2.3-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 358b651ce99e9ccc47c082143335563f53c54bbd413dd47deea1a1c37ffd7989 |
|
MD5 | 4afcffba0abed07231339bd730094736 |
|
BLAKE2b-256 | 4d009d8bf727b78c08bb4f6e9d4d05cca4f96d9255044e475b39135d002e3748 |
Hashes for quantile_forest-1.2.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86ca0b833982a6ab80ed9cc1a6ded4258b660303365d3949f73e5e88dad444c7 |
|
MD5 | f777f59757c64a4f3633876f372d1b47 |
|
BLAKE2b-256 | 025c798b33e0faeaa978655d99765b7bb78cba6552081468d0aae3327cfb5a53 |
Hashes for quantile_forest-1.2.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a119311c248defe6dd44db87aaee902926b55c3738bbc9e18ab93d2846272aa |
|
MD5 | 27d6cb593c1d2ff74b40fc784dab927c |
|
BLAKE2b-256 | ce4e1bf00a880bb257ab5bd84c2d7dcff2f4221cfdaa4bed639e4b71094e5765 |
Hashes for quantile_forest-1.2.3-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d39e0a6daf5ecd1b28145bc9db778d2f300edd00dc797400956c376eaf81c8d1 |
|
MD5 | 1ce27975c7dde7b33ada7cbd635e2229 |
|
BLAKE2b-256 | a70e419a575db248d58dadc20c502df824a590162020a4db226a6f26c345aeb8 |
Hashes for quantile_forest-1.2.3-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f80e8de6998a608498dfbff1fc95f586db9077ae46941e621ef60cd5a9eac4 |
|
MD5 | 7ec9086f4b2fda17fb6bcb47052282a6 |
|
BLAKE2b-256 | 0853be17234ce687e591b03e541517fd8d78ec7c8bc8c73133a0344164723cbd |
Hashes for quantile_forest-1.2.3-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9718a815478eced0b9d94aea0d9687ba0fe5fe9cfa1e604054bce84fa6eb8f |
|
MD5 | da47de28bfe0ba397246c7221570ebf7 |
|
BLAKE2b-256 | 2d1e0793d615e189c4c3889f43e767c7b4384502434e0220f4bdc891208fd9a9 |
Hashes for quantile_forest-1.2.3-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b4d67f9f3917bc58af13de83128d239f5e3a1a1af5d42484958425cdb6c8147 |
|
MD5 | cb6de2ebb05b091e45d80efb326bc1c3 |
|
BLAKE2b-256 | 0bbc07eb5b738e78e3116cc97c4585e7657ff7d1115e097594f1eda990f5c065 |
Hashes for quantile_forest-1.2.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb510780345ebef5f787ecb235a3576d40cc11ebe24216f83abdcb2adb08fd1 |
|
MD5 | 22edaad27926998feaaf98761272db1f |
|
BLAKE2b-256 | b5f90c8895270c3e146c518e9bf0d4d405a7cb80046e10f8dbbea63432a6f679 |
Hashes for quantile_forest-1.2.3-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11be240af06b7dc4c497a41ff4dd5cb714bf7224ee39ff98d8550fdbd9e0d5dd |
|
MD5 | b7d381fadfe29b5e16e72eef86e1485f |
|
BLAKE2b-256 | 1f613277e370e55ddc28af197fffc2141c853d59af8be2aba264483263954b78 |
Hashes for quantile_forest-1.2.3-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6636f8d7071a4eb6d5c028761ac6c425d84c0942da3d1d3a9641bf3cbe25325b |
|
MD5 | 7a60ae279ead1172fcfad05f1f79ef10 |
|
BLAKE2b-256 | 9f9aa100e6095d0fdf02d0eb2ba73e97cba146ab3bade15cc0a2f2b6326914c4 |
Hashes for quantile_forest-1.2.3-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb705511d20f405be4cd52a5dd074606aea9ea86676b3eb98d56bc13955ca6a7 |
|
MD5 | 0c049a64895c6397b4b04bb5f53d86f0 |
|
BLAKE2b-256 | be28b454335d8a525b2679465eaceb09f2b742db9f2504c55d7ae1622fd88a24 |