Skip to content

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")

Calls to ShapDP(...) passing a string literal for backend= other than "shap" or "shapiq".

Pass backend="shap" (the default) or backend="shapiq".

effector.ShapDP only accepts backend='shap' or backend='shapiq' and raises ValueError for any other backend string.

See all rules in the effector pack.