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.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b066baa346053823324a9e96280096adc640ac5025623e3bf29038b8806346f |
|
MD5 | b8850828c91c804e6d3c3b4d85c0c15a |
|
BLAKE2b-256 | 98297f11b23841d9960206054eca2d434827332fbd47e6146780e1a3c8203198 |
Hashes for quantile_forest-1.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 811d780303be484719fff78205716ad770122eca0ca87f5cab7a795386009e96 |
|
MD5 | 83c487c6cfeec8ce8476163b9e664bdd |
|
BLAKE2b-256 | 10ce84ed96632b5c5010b7800cefccc72fa94aeba256058f306711420514057f |
Hashes for quantile_forest-1.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 817be0dd1e0c584fea5aa8b3e390e243aff0c9699e170e14b467e92f517e7576 |
|
MD5 | 2e446afee6227242fe77772984a395bd |
|
BLAKE2b-256 | f41faf5ec7f44a84b714881d9d5b4a2d891d55496413925c03b87b38458d81e1 |
Hashes for quantile_forest-1.2.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5736a38dba927be6e72e89ce73ab6e0b7446a1d98218aab007d73fb44873c7 |
|
MD5 | f38a20ebc68e502d71dc5044182d26fa |
|
BLAKE2b-256 | 49caa9426020457c5414ee45c708c51e0ac551c8b7833ed2ac74bbbeef26e2ee |
Hashes for quantile_forest-1.2.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe390f12ad6f742f76c64eb7d566bc3339ac14870dadc43ede302e3f213a158 |
|
MD5 | 17c2b04d02158282ccd501c4d62cda30 |
|
BLAKE2b-256 | 5be0ef22cb84f187c1584328cdbe8b2c126bb38ceaf0ad2a6e36a64e1a229362 |
Hashes for quantile_forest-1.2.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea2d081c0182fb157511ec1b42312196055e3c24ad05b8fad11ed568222702a7 |
|
MD5 | b50ab05ef97e1e64b083331588e57f35 |
|
BLAKE2b-256 | 8da775c2c7d4a92d6e37d7122271331121afbfd698573e33825fecf5edf9f190 |
Hashes for quantile_forest-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e21952e8f561cf3c0d1610ec251b045e7bdcb76dfee205828c3417c3df70151 |
|
MD5 | c1234af42ad7af2563be7bbf90e1c575 |
|
BLAKE2b-256 | 7f268475c0bde6e53fe889e2360b0bfa96de994a7a24cafaf138399837621d31 |
Hashes for quantile_forest-1.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c87e96260321ebede7176e7eb9637ddb7995dfe518c044a015e33a80b8c5c78 |
|
MD5 | afd7b4ebdd01d04d8dd9aa76c7171af7 |
|
BLAKE2b-256 | f118f18f0e7ff7a7f97e4ac8ab79b114bdc05b0bfe8d50b7dbda1ac20440167f |
Hashes for quantile_forest-1.2.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f5620882228ebe36a16e05831d9d7dca1c6c9914de61dd862aeb42e9a42f4e9 |
|
MD5 | 51586735624b085375355cdba8d74a8c |
|
BLAKE2b-256 | 610fa41610d5488c060f7e404955b17bcf8922fd59e51d5359142636a99884d2 |
Hashes for quantile_forest-1.2.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64843cc34fbb686adb6373eb8566a845c790b7089b4911f553aaeb8fa9b16488 |
|
MD5 | c07aae729b08e1768920fa7b96b2d42d |
|
BLAKE2b-256 | 1ea116095462d0f8cfa5198659656783d05c8ff453970472138ceac56ea84570 |
Hashes for quantile_forest-1.2.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d65444b7efc5cb6feaeb245b4265b75d87ca58895e6681dc0ac37b19a66b568e |
|
MD5 | 9f58ad20d25538a8f2393a72df88cd7e |
|
BLAKE2b-256 | 92c3940a44257b1ce2cb2282bf2f634ab5ca8a4a8ceee5c605fa72e247e788bd |
Hashes for quantile_forest-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692df0364fd5f1b279dee36e8053d0abe2e0c2a8c523f1e18881d11a0990b18d |
|
MD5 | 9ee37df1d0dc3afa5d9d3b3a791a1db5 |
|
BLAKE2b-256 | 9133420390e52cf266cefad1dc01170d1007b79a658448cf0427d6f6da82d01e |
Hashes for quantile_forest-1.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45cd9cfb29bb0ff03267f6c6726fd02c8319adf73149797de0b92b986a0c56b5 |
|
MD5 | 2d33c402eb0ad0502814b3970cf11bd0 |
|
BLAKE2b-256 | 41613b2bbfbe78dab40529a51e456f44b7bba0c6897f11d7ab8b865cc03cf442 |
Hashes for quantile_forest-1.2.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d08a29e5aad06318a05c6cb7ebafe801ec6b4881f30a951eb66db74a5d86435 |
|
MD5 | e6629884d4caa0c6084fd98ef6e5d732 |
|
BLAKE2b-256 | aa1ea68a93deb5983be4505738a91dea517540c6a68bd0550391e59cbe140808 |
Hashes for quantile_forest-1.2.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7e41181e150eb9622f89e1679cca31d1fc1ff150ce793c61d9b110b0fbee88f |
|
MD5 | ee46ac3652487f4becf453632b8e88b7 |
|
BLAKE2b-256 | d2967d0e717266404e2cde93df4f1744ccc1590d080dc196137073fd4191ace4 |
Hashes for quantile_forest-1.2.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc5b1bb0fb65138f53f90162e837d6bb77c5267b79ef1066e5ebe5c43b6cb203 |
|
MD5 | d1bb16136ffb00ea4950ad9e88799df7 |
|
BLAKE2b-256 | 420e302e2fb0e77f85a7d71af2cf9609980fc10f395b7535882e4aeb43c0f9e3 |
Hashes for quantile_forest-1.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 025f85636b30e044133448790337c5d451509978a16c7ee08fec6044c2bb3380 |
|
MD5 | be2e21d7a2133b9b336877132cb2e062 |
|
BLAKE2b-256 | 5bc3740eb739a3c0ec1b277de9ef7093ea278ca6bb36d5d4979e1e7d5dbc727c |
Hashes for quantile_forest-1.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d60d2853ced726af66d07b501d9c1cdeb64d2c572e55e57cd8253e089633b87 |
|
MD5 | ebe630f0e50fc5cfac78480fa99340e4 |
|
BLAKE2b-256 | ee574d43f688dcd7e5aa525d25fda22252e4e789845de0f586af6e1150511027 |
Hashes for quantile_forest-1.2.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d23c613af0ebb293979afc570f4487463cddf1605bbcb9c76f72efb7e5dce1 |
|
MD5 | 729a1a440583306a47c578745a215b4e |
|
BLAKE2b-256 | 9c751e638e4cea37df5309154b13621b8513d97ab6e99d166be19423b784052d |
Hashes for quantile_forest-1.2.1-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10a9c8eb5305557237c8c1a3e99523912bf401715fefdfdf43dad3208c238eb2 |
|
MD5 | 41951f86e3473b923248132dafc7849c |
|
BLAKE2b-256 | 660db302de86cb358dadf96b52e32ed53cf3c7d4153bf8902f910c48bbb6c00d |
Hashes for quantile_forest-1.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9287f1188a56e4f03405fbde872b2ac3642a28485ec2fbff9d8fba2d7b25bc7b |
|
MD5 | 1200f8775f14d6add24039567b121cee |
|
BLAKE2b-256 | 45c8bec1bc69e012b43ee889f5be80c251de5d48d3024e4936d3850d6e971512 |
Hashes for quantile_forest-1.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5190174f64f9d9401bff9f141f8a89ca284c9ac12b51904679b6f457771e4d81 |
|
MD5 | a28ee6884d02a9079bfa343330b8fd9d |
|
BLAKE2b-256 | bca5277b30f3e27ada56cf71c25c032d95743466b7c33ed37ad45095c24666a3 |
Hashes for quantile_forest-1.2.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af2040c71c26d7caa6e6d5408476bd02a592a8285e1a84781d487a130af9b70 |
|
MD5 | 3b8b23d6cc55c35c4a25baa440d6d181 |
|
BLAKE2b-256 | 692e67b26f4e1f468546cb20a658e507100b7910ed8204199451cc199acd15d9 |
Hashes for quantile_forest-1.2.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfe6660ca4db296484cb4c61c4640232e537cf767cdbc8a44393caf4e484588d |
|
MD5 | 9b1e84903757619063a0e24bbc00a3cb |
|
BLAKE2b-256 | 90b5a500c1b15ec88a44e2f846ac68ece158420c145b6ab884d34aa66f1c97f2 |
Hashes for quantile_forest-1.2.1-cp38-cp38-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca8527ff991459d8c92773b0815e56b1747998a6c0d9a6bf99daa8fba918e9f8 |
|
MD5 | 24db2079f58ca1c01f34b62ba9359486 |
|
BLAKE2b-256 | ffa9447a31a4eadc0fb548c8cd6d5127d867b1d7d79413808fb624eb7e3cd857 |