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