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.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9288a591bcc791f7916512c72d9dcfd8ef2ee5f2867e38eacb4a35bfd4e71ff8 |
|
MD5 | 91f14d297141588ddab002604d8d6452 |
|
BLAKE2b-256 | ee4aad39a8f29a7dcde7d5cac1938cfd37d79a8aba1c4b949ad465a8d85f6624 |
Hashes for quantile_forest-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820bb77f53fd4ab0a9e2b7ce8cee4e4b27d5f5a4e1f94e58bb38bebca07e65ce |
|
MD5 | 6320f56e05d07656dd5483f281dc3e41 |
|
BLAKE2b-256 | 0689d769017642610fc63dc934efc2a249ddfb8e155953e274b5235be55040ee |
Hashes for quantile_forest-1.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dd957a8600405d2e467cfaf51ff8600dbab19a34b6f9e69e373e284e7bfd582 |
|
MD5 | 187101851fb879341aa86fad4d381367 |
|
BLAKE2b-256 | baa90502ade0662f6d7a46e96656fe1e7b5f6ca19efbac56f439d98a9ad26307 |
Hashes for quantile_forest-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 180a8cb1adc8fc185888cfc364169c0f047810e8497285b88c2e71e26803c066 |
|
MD5 | 8f7f8ac3f4d79fc2e883ac8805b2c4b9 |
|
BLAKE2b-256 | 420bc4912926b930ff99d2a2818bfd4848e62805f37a872713a720c78865df6e |
Hashes for quantile_forest-1.2.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b3194ac0b9c40e4caa910f8b03d07a05587d8f25c8f149ed83a888c92d47cc7 |
|
MD5 | ddf9fbcc23510e282e314d63c017ca8b |
|
BLAKE2b-256 | 9b6732325e4294890041b3965f0e34c9ef33587ea17b36eb24c884215c4eb886 |
Hashes for quantile_forest-1.2.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cdb35116e70cd2c6a44402bce87fa21e8b97811cedae480c26771dc386e3ca4 |
|
MD5 | f0217e7699acd58633c6881e291a6cee |
|
BLAKE2b-256 | 9fd45569742da60f36cbd8d3a198507b120a28b721df8531fc4c58bcba365347 |
Hashes for quantile_forest-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8de5faf12d460dd5eb1b7864120bbfd4319b72d4fc46540408ef17c6632ffd5 |
|
MD5 | f924163a2ea0b6513b158f49db95dde5 |
|
BLAKE2b-256 | 92415439547f690c656a766bd482f0023d0d2a252cfced167a935c2a6537954e |
Hashes for quantile_forest-1.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70453e0f5697f9422d1220dea7d4885d46d44a8d899a5f0e4cdb2261f43dc377 |
|
MD5 | 16e76c9419df606198a40be40d9aad22 |
|
BLAKE2b-256 | 4998343d07e9f3e54a426c2e596da4b582c493b27ded3aa2aa4af79b2a999b7f |
Hashes for quantile_forest-1.2.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e01b4a01d05cffe8c78bec3dd7251735ec4196c49df8c313f7aaacd1161501e4 |
|
MD5 | 4125f035b9eba86225d10cb77c454e77 |
|
BLAKE2b-256 | ad837277431b9349e66239ca606bacddf215e67a3bd83f738f1fd84403d467ba |
Hashes for quantile_forest-1.2.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9660036f2c690348d126627ef7fd4cd4f9321e0b112e00cdfce206902d0836a |
|
MD5 | 299724075a97d6bd725bdeb53abe2d73 |
|
BLAKE2b-256 | f82f2a6a9d16896e7f8caf1eafec55c807ce0fa7a2b8bf9cc0827a3ec15e4ded |
Hashes for quantile_forest-1.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77df19f85895b3c3c3b68e7f913e14c3a4a85b4172a390102dd088f1b3c4941f |
|
MD5 | 5504790bb12a1f70f5d250fb5cf22a11 |
|
BLAKE2b-256 | 2b35fd41f7ecb6beb02f591406665385b3c6d433bdcace1523d82d5c3bdcd1d4 |
Hashes for quantile_forest-1.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 265ffe29ecf304272b5657d991639f5ad7feeaf53f3d310d0490d55e359bb128 |
|
MD5 | 4966f58a350bfedda5c313acc0691917 |
|
BLAKE2b-256 | 24f3661bbbab44c6e901c4829786bbbf13d0065a859bf7bdf8b094ad039f06fe |
Hashes for quantile_forest-1.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c132ceef497333ccc4fb8fd43b03ab3d493d72fea451b199ae775fe5d955ff15 |
|
MD5 | dce298b4e561cd458d33f1dd8680c5ea |
|
BLAKE2b-256 | 5746ef64352fa33603482d687d192d78255f94d1715ac9a165a8f9b1e9af65a8 |
Hashes for quantile_forest-1.2.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc2e3df140cd6065fdd7656f5e2bfb02bc13631c71a3b83356540ceee154539 |
|
MD5 | a90412ac2ac6f680dc15c3677f65b336 |
|
BLAKE2b-256 | e2b4c2ad70860696a51568971de30977621a523c140ddfa22442cb6170fcf66f |
Hashes for quantile_forest-1.2.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 985386a2a0f466de996df1de1a7e8e34c6dacefa640259fe8baba38e5e1054d9 |
|
MD5 | 51a688f06c5f97a9031e28bad3d50469 |
|
BLAKE2b-256 | e7cf52294422ca131c1615eb64619eae79154b008cb07b90e25c3c33d981e04d |
Hashes for quantile_forest-1.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 413155e8092a0eaa300e4a02a36bd7cb32302cbd94bfc3babad651a3c17f1df5 |
|
MD5 | f4c1b891614d05d4fe6bbe2efc8cb759 |
|
BLAKE2b-256 | 2a7105fd8707dbf8a439e6b7985568ad5540e3fd99204abff321e9847313a8a6 |
Hashes for quantile_forest-1.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b6973271eaf82b7c4c4d11b7fa31dd234255395af5efcd653180992be7bd132 |
|
MD5 | d4736eb01a89695c6f80df2996269180 |
|
BLAKE2b-256 | cc341cad854160a78538bb8b5e32afc75a8fcb65d06ada6293eeb43e802f82ac |
Hashes for quantile_forest-1.2.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbdba8e28aa9897c8b37e343429a98289a2f65520c165e22aa5a58fe92bbe630 |
|
MD5 | 5bc24d7c2e62d02a819e2fafa49652fe |
|
BLAKE2b-256 | 99d9a70fa9290688e87d75e56e6463e609e7a9e376df85cd79bf5c011393076a |
Hashes for quantile_forest-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7635c099076c1d4a344f011534ce911e05be56676e993b9a917e591190ba1671 |
|
MD5 | c9c70d85b20d7fc82f8a888ce69ec221 |
|
BLAKE2b-256 | 676ce9be7c9c4b70b57ce357f413221b8fcf83c4d822111a1415892d607a71a8 |
Hashes for quantile_forest-1.2.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7d5a34f38be75f24a5b10375fde3c0e47fb9d995beb0e23f4fdd8b5352ec040 |
|
MD5 | 1ef0efe2a1ab242c3a852504b136a512 |
|
BLAKE2b-256 | 27517d7d85815ad149e3a7d92d7c36f833e4d0428f589646b704328c437ddc01 |