facet.explanation.ExactExplainerFactory#
- class facet.explanation.ExactExplainerFactory(**explainer_kwargs)[source]#
A factory constructing
Exact
explainer instances.- Bases
- Metaclasses
- Parameters
explainer_kwargs (
Any
) – additional keyword arguments to be passed to the explainer
Method summary
Construct a new
Explainer
to compute shap values.Construct an explainer from a function.
Render this object as an expression.
Attribute summary
True
if explainers made by this factory explain raw model output,False
otherwise.True
if explainers made by this factory allow for calculating SHAP interaction values,False
otherwise.True
, since function explainers typically use a background datasetexplainer_kwargs
Additional keyword arguments to be passed to the explainer constructor.
Definitions
- make_explainer(model, data)#
Construct a new
Explainer
to compute shap values.- Parameters
- Return type
- Returns
the new explainer instance
- to_expression()[source]#
Render this object as an expression.
- Return type
- Returns
the expression representing this object
- property explains_raw_output: bool#
True
if explainers made by this factory explain raw model output,False
otherwise.- Return type