Model-agnostic explainability (XAI) for bias discovery
Source:R/fairness_xai.R
morie_fairness_xai.RdR ports of the explainer suite in morie.fairness.xai.
Prefers iml for permutation importance / PDP / SHAP-ish
attributions when available; otherwise computes the same quantities
in base R from first principles. Every callable takes a
predict_fn closure (matrix -> numeric vector) so it works on
any classifier or risk model.