effector/unseeded-random-state
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| effector | warning | none, edit by hand | All versions |
Effector defaults to random_state=21 for reproducible subsampling and region partitioning. Explicitly passing random_state=None turns off seeding and makes results non-deterministic across runs.
ale = effector.ALE(X_val, model.predict, random_state=None)ale = effector.ALE(X_val, model.predict, random_state=0)What the rule reports
Section titled “What the rule reports”Calls to ALE, RHALE, PDP, DerPDP, ShapDP, FeatureEffect, or explain passing random_state=None.
How to fix it
Section titled “How to fix it”Pass a fixed integer random_state (such as 0 or 21), or omit random_state to keep effector's reproducible default.
Diagnostic message
Section titled “Diagnostic message”Passing random_state=None disables effector's reproducible default seed (21) and makes instance subsampling and region search non-deterministic. Pass an integer seed or omit random_state.See all rules in the effector pack.