Practical overview
When it fits
Use it when a tree-based regression workflow needs conditional quantiles or distribution-oriented outputs, rather than only an estimate of the conditional mean.
Who it is for
- Python practitioners who use scikit-learn-style regression workflows and need more than a conditional-mean prediction.
- Analysts building prediction intervals or investigating unusual observations in high-dimensional regression data.
Documented uses
- Estimate selected conditional quantiles of a regression target.
- Produce lower, median and upper quantile predictions for prediction intervals.
- Obtain out-of-bag estimates, quantile ranks or proximity counts for tree-ensemble analyses.
Requirements & limits
- The estimator follows a scikit-learn regressor fitting pattern and accepts quantile choices at prediction time.
- The documented installation prerequisites include Python 3.11 or later and scikit-learn 1.9 or later.
- Leaf sampling and weighting settings affect how training responses contribute to empirical quantile estimates.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install quantile-forest and fit a quantile regressor
Install the library and use its documented diabetes example to request a median and 95% prediction interval.
Before you start
- Python 3.11 or later
- NumPy 1.23 or later
- scikit-learn 1.9 or later
- SciPy 1.6 or later
- A pip or conda environment
Steps
Install with the command below or
conda install quantile-forest -c conda-forge.pip install quantile-forestLoad the diabetes dataset and split its features and target into training and test sets.
Fit
RandomForestQuantileRegressoron the training data.Call
predicton the test features with quantiles[0.025, 0.5, 0.975].
Expected outcome
Predictions for the requested lower percentile, median and upper percentile; the documented example returns three columns.
Guide limitations
- The example produces quantile predictions; it does not establish predictive coverage for other datasets.
- Quantile estimation depends on the documented leaf-sampling and weighting configuration.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- quantile-forest — quantile-forest 1.5.0 documentation · Official homepage title · retained in its source language

