Skip to content

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)

Calls to RandomForestQuantileRegressor or ExtraTreesQuantileRegressor outside test files that omit random_state=.

Pass an explicit integer seed via random_state= (for example random_state=0).

$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.