Skip to contents

First-order Accumulated Local Effects (Apley & Zhu)

Usage

morie_fairness_xai_ale(
  predict_fn,
  X,
  feature,
  feature_names = NULL,
  n_bins = 10L
)

Arguments

predict_fn

Function mapping an (n, d) matrix to n numeric predictions.

X

Numeric matrix or data.frame.

feature

Index or name of the feature to sweep.

feature_names

Optional character vector.

n_bins

Number of quantile bins.

Value

morie_fairness_result; $value is the ALE range.