Skip to content

interpret/ebm-unseeded-random-state

Pack Severity Fix Versions
interpret warning none, edit by hand All versions

ExplainableBoostingClassifier and ExplainableBoostingRegressor default to random_state=42. Explicitly passing random_state=None turns off deterministic bagging and internal validation splits, making cross-fold comparisons non-reproducible. (Differentially private DPExplainableBoosting* estimators are excluded because they require random_state=None for privacy.)

ebm = ExplainableBoostingRegressor(random_state=None)
ebm = ExplainableBoostingRegressor(random_state=0)

Calls to ExplainableBoostingClassifier(..., random_state=None) or ExplainableBoostingRegressor(..., random_state=None).

Pass an explicit integer seed (such as random_state=0 or random_state=42) or omit random_state.

Passing random_state=None disables EBM's deterministic default seed (42) and makes outer bagging and internal validation splits non-reproducible. Pass an integer seed or omit random_state.

See all rules in the interpret pack.