facet.explanation.base.ExplainerFactory#
- class facet.explanation.base.ExplainerFactory(**explainer_kwargs)[source]#
A factory for constructing
Explainer
objects.- Bases
- Generic types
~T_Model
- Metaclasses
- Parameters
explainer_kwargs (
Any
) – additional keyword arguments to be passed to the explainer
Method summary
Construct a new
Explainer
to compute shap values.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
if explainers made by this factory will use a background dataset passed to methodmake_explainer()
,False
otherwise.Additional keyword arguments to be passed to the explainer constructor.
Definitions
- abstract make_explainer(model, data)[source]#
Construct a new
Explainer
to compute shap values.- Parameters
- Return type
- Returns
the new explainer instance
- abstract to_expression()#
- explainer_kwargs: Dict[str, Any]#
Additional keyword arguments to be passed to the explainer constructor.
- abstract property explains_raw_output: bool#
True
if explainers made by this factory explain raw model output,False
otherwise.- Return type
- abstract property supports_shap_interaction_values: bool#
True
if explainers made by this factory allow for calculating SHAP interaction values,False
otherwise.- Return type
- abstract property uses_background_dataset: bool#
True
if explainers made by this factory will use a background dataset passed to methodmake_explainer()
,False
otherwise.- Return type