rules/shap/legacy-bar-plot.md
shap.bar_plot() is a deprecated alias for bar_legacy() and emits a DeprecationWarning in SHAP 0.54.
diff
| 1 | -shap.bar_plot(values, feature_names=cols) |
| 2 | +shap.plots.bar(explainer(X_val)) |
What the rule reports
Calls to bar_plot(...) in files that import shap.
How to fix it
Compute a shap.Explanation with explainer(X_val) and plot it with shap.plots.bar(explanation).