What you can do
- Build class-mean prototypes from training data.
- Explain one sample with Diff-FPDE, Cos-FPDE, or Hyb-FPDE.
- Explain batches while reusing fitted prototype state.
- Search Diff, Cos, and Hyb-FPDE candidate settings.
- Select
lambda_hybwith held-out deletion and insertion validation. - Build a Bayesian-FPDE posterior over
lambda_hybcandidates and explain with the posterior mean. - Compute deletion and insertion perturbation curves for an attribution vector.
How FPDE explains a prediction
FPDE starts from a local class contrast. The target class is usually the classifier’s top predicted class. The rival class is usually the second-highest-probability class. FPDE compares the input against the target prototype and the rival prototype. Positive attribution values support the target class relative to the rival class. Negative values support the rival class relative to the target class.Quickstart
Install FPDE, fit an engine, and explain your first sample.
Method overview
Learn the target-versus-rival contrast behind Diff-FPDE, Cos-FPDE, and Hyb-FPDE.
API reference
Review the public functions, classes, parameters, and result objects.
Reproducibility
Record the settings you need to reproduce FPDE experiments.