Skip to contents

Partial dependence on one feature (Friedman)

Usage

morie_fairness_xai_partial_dependence(
  predict_fn,
  X,
  feature,
  feature_names = NULL,
  grid_size = 20L
)

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.

grid_size

Number of grid points.

Value

morie_fairness_result; $value is the PD range.