FPDEEngine.explain_one when you want one attribution vector and the metadata behind it.
This is the common path for local explanations.
Prerequisites
- A training matrix
X_train - Training labels
y_train - One explanation vector
x - A fitted classifier with
predict_probaandclasses_
X_train and x.
Fit reusable FPDE state
Explain the sample
lambda_hyb controls the Hyb-FPDE mixture.
A value of 1.0 uses the Diff-FPDE endpoint.
A value of 0.0 uses the Cos-FPDE endpoint.
Read the details
Positive attribution values support the target class.
Negative attribution values support the rival class.