quantile_forest/unseeded-quantile-forest
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| Quantile Forest | warning | unsafe, with xpd check --fix --unsafe-fixes |
All versions |
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.
reg = RandomForestQuantileRegressor(n_estimators=200)reg = RandomForestQuantileRegressor(n_estimators=200, random_state=0)What the rule reports
Section titled “What the rule reports”Calls to RandomForestQuantileRegressor or ExtraTreesQuantileRegressor outside test files that omit random_state=.
How to fix it
Section titled “How to fix it”Pass an explicit integer seed via random_state= (for example random_state=0).
Diagnostic message
Section titled “Diagnostic message”$C without random_state= draws different trees and leaf subsamples on every run. Pass random_state= (for example random_state=0) for reproducible quantile predictions.See all rules in the Quantile Forest pack.