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.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ccdd88299bc93ad7ec7ff14db7462a1a9eb29b758e6165ff095d5b0958600d |
|
MD5 | ed7515b83c9abbf806c04858332767da |
|
BLAKE2b-256 | 7e594e33791c8dd8799efb239d1ed86e65e9c5e1f8b7484e80a98d93fbac7b15 |
Hashes for quantile_forest-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae01aa444246a07073e4782b482fd34203b87f2d1dcc631ed4024bb2dfe887d |
|
MD5 | 163854b026fb676d1c8f1ebf7853573e |
|
BLAKE2b-256 | 88023723175360c3fdfa5ed9f14ebad2f5f8a638e9a49f16974dcc481a7dcd50 |
Hashes for quantile_forest-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32897013f16084b2245d52267fab61b42619a7e9058c723d16b7edb129baa7dc |
|
MD5 | fc8686c56c80962e94f1944a26ee9ec0 |
|
BLAKE2b-256 | fad643e0a59aa36ef5b93650a9dd937f7571ce5cc655b30cd14f72012ac556ac |
Hashes for quantile_forest-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08a3ff990ad95c346e2a0b237f74c4d4f4c9b166b443850bef7322850a4aa59f |
|
MD5 | 7b505900460f4f290d44c236ae7ec6c2 |
|
BLAKE2b-256 | 8b11ed5d17b9d9dc14ef6d18190eecc8a1e1e14fa87fba8dd06574c9a2c5b5c1 |
Hashes for quantile_forest-1.1.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7830431f2cd7972b67ee959c403cf5c04170df4266a458d53405b013b78a74 |
|
MD5 | 4e93c8fa91ccbedfba5cd064220c7a49 |
|
BLAKE2b-256 | db75b21bdd987a8503dd3b3214e2393ed0e85abd8dd25d70522a05270cb45176 |
Hashes for quantile_forest-1.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e83534e7792a0ca45ed19db2d3087084e57d9ffcc4028878e366a81982fe302 |
|
MD5 | 2aef58f94e06c601dec6953e42bdbf19 |
|
BLAKE2b-256 | 8b5c473968a5c387fe3342207baff9efeda080cc92480804acecb92de4d92b4c |
Hashes for quantile_forest-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6371631521c1c352258cb5986bfde36c68dd434230037a5ef8c2f010dbf0053 |
|
MD5 | 93138e6c1a56acee50b27632830cb697 |
|
BLAKE2b-256 | e2906d56d92dc4a13f68ee8a27e04c52c9e7a1321fea40028638bd8afe2d27ab |
Hashes for quantile_forest-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585c5e7f8f873a0e5e912d74aed2b6ea566b8881033bf2c1a61f2e7b9e77932c |
|
MD5 | 2548e5f30d903eb366750df61f11bec7 |
|
BLAKE2b-256 | 3161fbd147f95d0cc64a59e22aca24d3843f56ac5bad4c3a03fe8e2470b7d93f |
Hashes for quantile_forest-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd75876a7fdd0f4d5ca519c22e2d9ea4aaea405a1e25a26bc891d3ea650f8674 |
|
MD5 | c9878f522cc473d05ed109819d2abb8a |
|
BLAKE2b-256 | 861ffcbca1dba3783603ad4668b3762927b3a03c6ec98306558e19f07826e972 |
Hashes for quantile_forest-1.1.0-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f6491082625233c46e0fd878f0cf839a147ad77f3941533934618ee83c652e |
|
MD5 | ac8def0a6b76b66c603be47e506470fc |
|
BLAKE2b-256 | a315e9bccac045227f1bb98cc71472e3ac4ff72945aa7a32ff22f95cf4649485 |
Hashes for quantile_forest-1.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd59fa4a76f07b318be814518ce45bb29337edeeefb766ea9071254766518bc0 |
|
MD5 | b43edbea7982f14d97ee71d11ff91f59 |
|
BLAKE2b-256 | 7686ae958bbf0e7a0fb989284b73f9ae9ad25b2c4a9926d1a6870abf14510c5e |
Hashes for quantile_forest-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea897ba1f430a8a790d7df7852244cce96240def563c2fcc43fa17e45add659 |
|
MD5 | 2d289d080b52929f74ac1e9047cc394e |
|
BLAKE2b-256 | b4f7f5c71a4a9c72b3182a98442197cd32c11b9c77cbddd9f82aaa98c8d80452 |
Hashes for quantile_forest-1.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12be685c97f1ba02b71e8fedea3566c83a41fe27dd0a0f2bebc05187bee52bd0 |
|
MD5 | fad6c2e6dc5001401cfcdc6d7c935343 |
|
BLAKE2b-256 | c9ae74a2105fe5ac8932828b0bfc6f38134dfb67189e960228133930b14b1018 |
Hashes for quantile_forest-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98aeb07c62f2b8510bf85980841022118a736395579724d2ae80c7783a1a9b7f |
|
MD5 | 103080d15e62333a174c41ce94c58824 |
|
BLAKE2b-256 | ac9018b885a5ef07b10ee39fecd3b9f2b6d2bafa138f98e3b0af31055ad689d5 |
Hashes for quantile_forest-1.1.0-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70c57fac5bcc130d6759ca1495a1b1e758bcee31d27e47d616d0d9ffa83a52ee |
|
MD5 | 51765dff34ccf525543209f60b39485e |
|
BLAKE2b-256 | 31a63078e3cb9b74d7f925adf9de1ee5aeb07e6a610b68c2786d350faa04ff33 |
Hashes for quantile_forest-1.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b88076807ec679aae255c95a0dc7a01716da0ef0348082241936c75edcde2660 |
|
MD5 | e9ba1d473fbf71dba3b6ac448040f937 |
|
BLAKE2b-256 | f8751a5e8f062a6314ba1c6bc7029670f2ce88c86a7a41ecdae5a50e87a679e1 |
Hashes for quantile_forest-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6c3c271f93b101b1a0d3fa810e2c9b1dfaa8044820d2f469cf7416c3749d02 |
|
MD5 | e3c049da41aae661e07e3b19cddaa233 |
|
BLAKE2b-256 | fb8255056527b064277f0ee1f286383a080c3f5438d13148ee8c9bf511b08f02 |
Hashes for quantile_forest-1.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7858b106ef5a556f7c973aeb08fa6ceec5cee6e2a4766c9ef423c846a71443b3 |
|
MD5 | 40ad67927d266fa4acd181553bd88c0a |
|
BLAKE2b-256 | 5692c096987adcceebfda50029f45942e59b413a4ca5dcf489d238667536a37e |
Hashes for quantile_forest-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b98ed4369c14a17a87f47fbd5081318eb35402e6a1ec11c8cb939d9b762ff3e2 |
|
MD5 | 5879594d214dda7bc7de4e994def4ab5 |
|
BLAKE2b-256 | 27ec68bebfb31eb59449cf8a209cb6c501fdcfe71cee2973b02b386ff1cbb46c |
Hashes for quantile_forest-1.1.0-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02fbbbfea66c20be23843e8e96942c09fdb9f7a468bb0024d32b023e4b345807 |
|
MD5 | 1dedc1d36e363866c631bb5f83ec4e7a |
|
BLAKE2b-256 | 47d127cac490ff6ca224e9feb4e927c7604eca8a2ca85fc9fed4f7dc95d063d4 |