effector/invalid-shap-backend
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| effector | error | none, edit by hand | All versions |
effector.ShapDP(..., backend=...) raises ValueError for any backend other than "shap" or "shapiq".
shap_dp = effector.ShapDP(X_val, model.predict, backend="tree")shap_dp = effector.ShapDP(X_val, model.predict, backend="shap")What the rule reports
Section titled “What the rule reports”Calls to ShapDP(...) passing a string literal for backend= other than "shap" or "shapiq".
How to fix it
Section titled “How to fix it”Pass backend="shap" (the default) or backend="shapiq".
Diagnostic message
Section titled “Diagnostic message”effector.ShapDP only accepts backend='shap' or backend='shapiq' and raises ValueError for any other backend string.See all rules in the effector pack.