facet.inspection#

Learner inspection with standard local SHAP and global FACET metrics describing how features combine to contribute to all model predictions.

The LearnerInspector class computes the shap values and the associated metrics of a learner pipeline which has been fitted using cross-validation.

Classes#

FunctionInspector

Explain a function based on SHAP values.

LearnerInspector

Explain an sklearndf regressor or classifier based on SHAP values.

NativeLearnerInspector

Explain a native scikit-learn regressor or classifier based on SHAP values.

ShapPlotData

Data for use in SHAP plots provided by the shap package.

Submodules#

facet.inspection.base

Abstract base classes for model inspection.

facet.inspection.shap

Helper classes for SHAP calculations.