facet.explanation#

Factory classes for common SHAP explainers.

Provides a unified API for creating SHAP explainers provided by the shap package.

Used by LearnerInspector and FunctionInspector to create explainers for the learner or function under inspection.

Classes#

ExactExplainerFactory

A factory constructing Exact explainer instances.

FunctionExplainerFactory

A factory constructing Explainer instances that use Python functions as the underlying model.

KernelExplainerFactory

A factory constructing KernelExplainer instances.

PermutationExplainerFactory

A factory constructing Permutation explainer instances.

TreeExplainerFactory

A factory constructing TreeExplainer instances.

Submodules#

facet.explanation.base

Abstract base classes for the facet.explanation package.

facet.explanation.parallel

Running multiple explainers in parallel using a ParallelExplainer instance.