The Quantile Forest pack checks out-of-bag configuration, monotonicity constraints, quantile bounds, and reproducibility against quantile-forest 1.5 on files that import quantile_forest.
| Rules |
Safe fix |
Unsafe fix |
Manual fix |
| 4 |
0 |
1 |
3 |
| Rule |
Severity |
Fix |
What it finds |
| oob-without-bootstrap |
error |
none |
Out-of-bag scoring requires bootstrapped trees, and ExtraTreesQuantileRegressor defaults to bootstrap=False, so enabling oob_score without bootstrap=True raises ValueError("Out of bag estimation only available if bootstrap=True"). |
| monotonic-cst-multi-samples-leaf |
error |
none |
quantile-forest only supports monotonic_cst when each leaf keeps at most one target sample (max_samples_leaf=1), and raises ValueError during fit if max_samples_leaf is None, a float, or an integer other than 1. |
| quantile-out-of-range |
error |
none |
quantile-forest expects quantiles as probabilities in [0, 1] (or "mean") and raises ValueError("Quantiles must be in the range [0, 1]") for percentages such as 50 or [10, 50, 90] or negative numbers. |
| Rule |
Severity |
Fix |
What it finds |
| unseeded-quantile-forest |
warning |
unsafe |
RandomForestQuantileRegressor and ExtraTreesQuantileRegressor randomize both tree splits and per-leaf sample selection (max_samples_leaf), so omitting random_state makes quantile intervals non-reproducible across runs. |