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 Distribution
Built Distributions
Hashes for quantile_forest-1.1.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2482dc970ac58646696e349a497131e8551ae4908949b363147f48e49149ca |
|
MD5 | 8b44790d0dfb8da1572a848a26ba9fdf |
|
BLAKE2b-256 | 859e086bd2138bec4ad9b40dc599b88c0b18541df32349d8ac548377beac78d8 |
Hashes for quantile_forest-1.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35df0207814148edfbb8ae89c6aac78f8e887b9b714b5d93cac1f070e8bc4278 |
|
MD5 | 704195987eade2e9200f3cc924502569 |
|
BLAKE2b-256 | cd42904ce301adc1f0218f1776bbb3342849d5cd1ee6cc701e9f9b5a9326f13d |
Hashes for quantile_forest-1.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e487109be91e82b4c2bd7cbbd2015bf1187ed8ba4ec5866fc8131eb5b1f62106 |
|
MD5 | 264b4652c1773d8287b814c2a4700314 |
|
BLAKE2b-256 | 5c9cecb67eeb44c754e8778c55efd4f02a8aee52bcc8904de9e5077e371c8ac2 |
Hashes for quantile_forest-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 874e0d016a9a2358dfa02626a06b57d038a2f319e3bef630cfe1274dd27c7bfc |
|
MD5 | 65ac68c6f52ef3ac2eae7812cf890ced |
|
BLAKE2b-256 | 87153c8af5273183830236b640d578b821cc18d4eda0ff4028cc8e7878f8a3d4 |
Hashes for quantile_forest-1.1.2-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44321bf1160768a7133ed76934595505fb69d7c9ab7a3a7e20195909ccc3c55b |
|
MD5 | 891376d214f5d4bd03bdbd2778c65e71 |
|
BLAKE2b-256 | 83ede148bc22de6c15163a5aea710bca26a309292cc7b93b401ebab14859ccd6 |
Hashes for quantile_forest-1.1.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3cff4d7d43fdd24ccdc5774d2387ccb4be2762ddd29a3b7d89658b5d269ec77 |
|
MD5 | 64a40cb31710d2b764e9815d1151ac29 |
|
BLAKE2b-256 | c65ccd8761d0c4f64dcd295af13fccae7eb061853a4c729749215d7b1ce17413 |
Hashes for quantile_forest-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26d3c919c8802983b858e7a95988687d8956fd958317809c697060cff72e42b8 |
|
MD5 | 8ab5d25081dba96d5c9f0ba4e3f12c05 |
|
BLAKE2b-256 | 5066ddaa2b25b3ef789a85589a5d172f76f2f0d29a2b8fde15a546782ff57946 |
Hashes for quantile_forest-1.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8be73c118c1a1817797dbdbd4fbef608e7a3e48ee043c3ae5e58443a5775b912 |
|
MD5 | 3cea924bd19401c4744a5153ae29b9a0 |
|
BLAKE2b-256 | 69dcbde133bf4afabb14f468a14f328e38fe16a782e7cff634dc5b663d43f063 |
Hashes for quantile_forest-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed230a70f61b605240f8727312df5ef1555245123102c7547e56348332c236c |
|
MD5 | 087cbe530a2ec780fd0b177441515db9 |
|
BLAKE2b-256 | f3df512d92c4efbb4278867b8851795dd5027b32ea5172701015ac9950b1a7a5 |
Hashes for quantile_forest-1.1.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b35871bb7d53259c6601aa7001c0c0c20fdfe7c9d1b75ff1924e8f96889ab37 |
|
MD5 | 4c640891bfe1380947900763924582f0 |
|
BLAKE2b-256 | 504720e9e1cc9cbcb0e28e3f67ad20410f4cb0daf1cb217374b02b9c391a6468 |
Hashes for quantile_forest-1.1.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42704507bb4ee33774b625bfa81a7f85fd7e09d7d5191125028b5a92ff2613a6 |
|
MD5 | bb2a862d808eadd06ca4fe00ad563081 |
|
BLAKE2b-256 | 9c0f7c519c59cfe19e8d17fdad8e3e914a6eb4b37601645fcfb0c5fc50bb0736 |
Hashes for quantile_forest-1.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a717eea39febaad0ffe4e8257e3620efa8b53edc57a6ae4048f984a772026d0a |
|
MD5 | 05fb7fc605bde3201d083bc3828d0513 |
|
BLAKE2b-256 | c9f90f48b009a734a2d78879509a3aab133089da5eeb6bdfed56b45651870128 |
Hashes for quantile_forest-1.1.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05cf822dd3752347ada61dfe7d7fc44779f13d51090ccf5b6ae109b74cec9ace |
|
MD5 | 3b3ab08b9c789f58cf6ad06884fb4e3f |
|
BLAKE2b-256 | feb2f50ae65f794028485d0cdd5600105c57eb72328a586f67764e610b1a24a6 |
Hashes for quantile_forest-1.1.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ede7a4c75c35aca41b289f8280657a13e19d8d4fdc8abac45711ddedebcde11 |
|
MD5 | 5875f1ca830cf6d4aa6b4e6ae8fa5d0f |
|
BLAKE2b-256 | d05376753904deb8f00310425b3103e43b447648a16f59ad7d9ac90899f1c861 |
Hashes for quantile_forest-1.1.2-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba1f0f4bc7706293c12d5fa67a8573261533bae636d1da8e1b648f0509d74bfc |
|
MD5 | 85705544ec800cc07b3a17492a920d00 |
|
BLAKE2b-256 | 58619df601902e88c4efedf0cd87df7bf8f89478d0e17f7080e5e6ded6964322 |
Hashes for quantile_forest-1.1.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5fd59f0e073a49b56077d8242e2d6b825dd54984c756b34d690b6c35f5360f |
|
MD5 | f7687f8b15aa1abea64781211f6cd6c7 |
|
BLAKE2b-256 | 9e1e9a366e6d77b5b5a328ed4c3640a0bc3a92f47054bf8e40f0a301a3056363 |
Hashes for quantile_forest-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e220665fbab8c1690b44f80a25cb724e25cfe2e5affe31ba223f21fc1512965 |
|
MD5 | c81ac069f93814de3b731baca7680f94 |
|
BLAKE2b-256 | c75242010f7564027ecca01f2e26ba5f28351cfdb1e43c1587aeb87bb9f6bd2f |
Hashes for quantile_forest-1.1.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0ef78169ae25e6a8e42e3eed9dcf26cfa0d986ae86bdfe052e078f686115c5b |
|
MD5 | 6e4e5bb77b8b2237bc766bfdc61f3d41 |
|
BLAKE2b-256 | b3c4b833d680054f4c6daa7532470ba8e335d615277721eb0900f00933c85c7e |
Hashes for quantile_forest-1.1.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22077eab73c6fbae45fcbe2a6da4f63e3d70620a84bc724a4c0d8761ceec92c |
|
MD5 | 8c454e12c5a8d69e25a6c323f65cf450 |
|
BLAKE2b-256 | 0c7465dce7e92f11c5ea0e903fecdf8eaf7d27d4fefe6548427f42cb37453817 |
Hashes for quantile_forest-1.1.2-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df10d53fa5a27bdfa466c7a92356b7193adc5c0728d166127a1b89c4d73c1747 |
|
MD5 | 83e0feed38c219a1123cc35d408c6b92 |
|
BLAKE2b-256 | 7da122e5e6d4f90ee6a591fca2efd7ffb2f0751106dc51ffc3f7eb39ee91b018 |