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)What the rule reports
Section titled “What the rule reports”Calls to ExplainableBoostingClassifier(..., random_state=None) or ExplainableBoostingRegressor(..., random_state=None).
How to fix it
Section titled “How to fix it”Pass an explicit integer seed (such as random_state=0 or random_state=42) or omit random_state.
Diagnostic message
Section titled “Diagnostic message”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.