quantile-forest
Quantile regression forests compatible with scikit-learn.
What it is and what it does
Quantile-forest is a Python package that implements quantile regression forests (QRF), a non-parametric tree-based ensemble method for estimating conditional quantiles. It extends forest estimators with the ability to predict arbitrary quantiles at inference time without retraining, making it useful for uncertainty quantification and prediction interval estimation on high-dimensional data.
The package provides Cython-optimized estimators that are compatible with and can serve as drop-in replacements for forest regressors. It supports out-of-bag estimation, quantile rank calculation, and proximity counting. Prebuilt wheels are available for Python 3.9–3.14 on macOS, Windows, and Linux, with dependencies on numpy, scipy, and scikit-learn.
Use it for:
- Estimate prediction intervals for regression tasks to quantify uncertainty around point predictions.
- Build uncertainty-aware models for high-dimensional data where conditional quantile estimates are needed.
- Add quantile prediction to existing pipelines without retraining or major refactoring.
- Perform out-of-bag quantile estimation for model validation and robustness assessment.
- Compute quantile ranks and proximity counts for ensemble diagnostics and model interpretability.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Quantile regression forests for estimating conditional quantiles and prediction intervals, with scikit-learn compatibility and Cython optimization.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive Apache-2.0 license, and offers a compatible API for quantile regression. Medium install friction is offset by prebuilt wheels and straightforward dependencies on numpy, scipy, and scikit-learn. Suitable for production use in uncertainty quantification and prediction interval tasks.
Install
quantile-forest on PyPI
pip
pip install quantile-forestuv
uv add quantile-forestpoetry
poetry add quantile-forestInstalling quantile-forest
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.9–3.14 across macOS, Windows, and Linux, reducing build complexity. Active maintenance with a recent release 54 days ago.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install quantile-forest
from quantile_forest import RandomForestQuantileRegressor
import numpy
qrf = RandomForestQuantileRegressor()
qrf.fit(X, y)
y_pred = qrf.predict(X, quantiles=[0.025, 0.5, 0.975])
Requires Python 3.9 or later; numpy, scipy, and scikit-learn must be installed.
Verify before relying
- Performance benchmarks against other quantile regression implementations.
- Scalability limits on dataset size or dimensionality for practical applications.
- Whether out-of-bag estimation and proximity count methods are documented with usage examples.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 3 — numpy, scipy, scikit-learn |
| Maintenance | actively maintained — 54 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 78,362/month — #14,448 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quantile_forest-1.4.2-cp310-cp310-macosx_10_9_universal2.whl; quantile_forest-1.4.2-cp310-cp310-macosx_10_9_x86_64.whl; quantile_forest-1.4.2-cp310-cp310-macosx_11_0_arm64.whl; quantile_forest-1.4.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; quantile_forest-1.4.2-cp310-cp310-win_amd64.whl; quantile_forest-1.4.2-cp311-cp311-macosx_10_9_universal2.whl; quantile_forest-1.4.2-cp311-cp311-macosx_10_9_x86_64.whl; quantile_forest-1.4.2-cp311-cp311-macosx_11_0_arm64.whl; quantile_forest-1.4.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; quantile_forest-1.4.2-cp311-cp311-win_amd64.whl; quantile_forest-1.4.2-cp312-cp312-macosx_10_13_universal2.whl; quantile_forest-1.4.2-cp312-cp312-macosx_10_13_x86_64.whl; quantile_forest-1.4.2-cp312-cp312-macosx_11_0_arm64.whl; quantile_forest-1.4.2-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; quantile_forest-1.4.2-cp312-cp312-win_amd64.whl; quantile_forest-1.4.2-cp313-cp313-macosx_10_13_universal2.whl; quantile_forest-1.4.2-cp313-cp313-macosx_10_13_x86_64.whl; quantile_forest-1.4.2-cp313-cp313-macosx_11_0_arm64.whl; quantile_forest-1.4.2-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl; quantile_forest-1.4.2-cp313-cp313-win_amd64.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
forestciComputes confidence intervals and variance…
permissive · top 15,000 on PyPI
pyfixestPyFixest performs fast high-dimensional fixed…
permissive · top 15,000 on PyPI
MAPIEMAPIE computes prediction intervals and…
permissive · top 15,000 on PyPI
tensorflow-decision-forestsTrains and deploys decision forest models…
permissive · top 15,000 on PyPI
ngboostNGBoost implements Natural Gradient Boosting…
permissive · top 15,000 on PyPI
ydfYDF trains, evaluates, and interprets decision…
permissive · top 15,000 on PyPI
ddsketchDDSketch computes quantiles (percentiles) of…
permissive · top 5,000 on PyPI
treeinterpreterDecomposes scikit-learn decision tree and…
permissive · top 15,000 on PyPI
tdigestImplements Ted Dunning's t-digest data…
permissive · top 15,000 on PyPI
missingpyFills missing values in data arrays using…
copyleft · top 15,000 on PyPI