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
california = datasets.fetch_california_housing()
X = california.data
y = california.target
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.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f01764fd81483430c14663e6f199ae18aacc6efba7505bbae20fa734c11c65 |
|
MD5 | 7866662d160f66a48abdcb8494cbe7dd |
|
BLAKE2b-256 | 66e3b1dd9a5bfbce79b20ff8d880de5d6f6b9bc6706b62cc815f2533d675acaa |
Hashes for quantile_forest-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0747933bac1cd5f44cf7739329fe4e24b9b37239651ddf82e7129f0cc9349334 |
|
MD5 | b30de79e7de4205774487b257e9505f2 |
|
BLAKE2b-256 | 2c162c965a9d51fcd73fa713908c0441110a75f1f53309bc352f52c145295787 |
Hashes for quantile_forest-1.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 143f7d8f450733afbf0d21fda759100a89a649ab4c665d852ddb9547507e35df |
|
MD5 | 3a74d2b07e794156aaf3195f53ed2fc1 |
|
BLAKE2b-256 | 4ef2eb6cb765751ef4d939b02615f93a5dd701849df33364b90b5ddc3f10b89e |
Hashes for quantile_forest-1.0.1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66262cff9cef12d177d67940be5261324a32f280dbb350c876c7382ae37b71a |
|
MD5 | 78f509bcb4970ceef28f7b14b47b2f74 |
|
BLAKE2b-256 | bad2642cfb23851a031aa206dda2d92716b7bb20c02c503dc0a237290260c2bd |
Hashes for quantile_forest-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6025decb833b4532bb5a393b48bd567f9b1ea08ef79128c7a8e5df9086e835 |
|
MD5 | c19ecae9ad6b99d8118d01fe981af850 |
|
BLAKE2b-256 | 2bb57e863bb5dc03ed41a1ac455fd9609d6fa34cce81c6a9ed344e9cbe80a7e6 |
Hashes for quantile_forest-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95cfffd52ea8d3fc01f3904eca96a19888c9e22c0f2f4a9a3f8424a6516dcff7 |
|
MD5 | 5894b0b6cc41e11f526b5a4c68cfd783 |
|
BLAKE2b-256 | 85d2240f35ff696882b067b3697948cf8ff6e7753e3e2c5a3646874fbc1a5886 |
Hashes for quantile_forest-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08913b534894de3af9c658853ac0aa582e55f95f52fe8c80160842b638dad271 |
|
MD5 | 175dc3472fb716fb0fc29d1f3164c683 |
|
BLAKE2b-256 | d59b43703f4eb3fb576f2ca925b0dd5be8185ecc589639d5fddd17b6c0d6e8af |
Hashes for quantile_forest-1.0.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4921b14822d6e982280335fef82c350feb68d53009f3c7d7af936a1c53184b4 |
|
MD5 | 760bfb85e8dda21742b369973459d9b9 |
|
BLAKE2b-256 | 861b5c0a443e6b1aa6e5ea2b1d0b917938d8f39f8e9fc38f712d2b927dcb125a |
Hashes for quantile_forest-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae5a48b9f9d30a83ee9637eee68cda7551e6bfd6d1b62fe6d9cf136cd6c34de |
|
MD5 | 12cf49f5f372059aa5594674c7b3e787 |
|
BLAKE2b-256 | a22138c8f31c958417bc2b7d728daf0f808e1d48fac92ab3908d155caf4a8ee0 |
Hashes for quantile_forest-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c98515fdde7b94b37edbaf380df0931b6bbe9d18f2c4a75d53de40f7db03a5e |
|
MD5 | 9df2a6b4da7dc796f0bb4951ce8d7684 |
|
BLAKE2b-256 | 2c5e57dfe4a55611d328d1347f7ae4ccc37263b419da73e54efc920f9cfd49f1 |
Hashes for quantile_forest-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dff95d6e1fdf1b1e1d05f8f57a97bc3373c79aed69c3d3a3213d874c75268f5 |
|
MD5 | 16c63de19c90554885aec504b7dd2423 |
|
BLAKE2b-256 | 7b61959bb5e7f47a95958c9c54102747b8a5a1d3bf8e5fc9c6d17329e86f1a9f |
Hashes for quantile_forest-1.0.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2699b37554d4f6274abf81f2ab1a192eb366741c2deb9d2604d1e0d66f089a8d |
|
MD5 | b96f9b02cee15729667329cc2114e76c |
|
BLAKE2b-256 | 0e61b9f860541fa169f5d074d7b8d180007cbae73b2a186b260115275fe71d31 |
Hashes for quantile_forest-1.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb8f85baf6ff2a9bd1328cfb23a43b94395b5c213a0970a35d9f70cc76f5994 |
|
MD5 | bfd94fb7f4507835bc93a63b2e56da26 |
|
BLAKE2b-256 | 4d37ff2284c4c9222b7315ad44fa225e56254791a5222b503285bc888f020b19 |
Hashes for quantile_forest-1.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95679f2a24d2247c212d4c6929c39ce015c9ad93810395dd75df96bf00beb127 |
|
MD5 | 1af60ec76907305542f58c4e0beda3f6 |
|
BLAKE2b-256 | 4fb3840d1e4a662b3fb1ec85dfce0fd751d0f41fbd2cf69fc36e7d43f5971062 |