Local Black Box Explainers

SHAP Explainers

class aix360.algorithms.shap.shap_wrapper.KernelExplainer(*argv, **kwargs)

This class wraps the source class KernelExplainer available in the SHAP library. Additional variables or functions from the source class can also be accessed via the ‘explainer’ object variable that is initialized in ‘__init__’ function of this class.

Initialize shap kernelexplainer object.

explain_instance(*argv, **kwargs)

Explain one ore more input instances.

set_params(*argv, **kwargs)

Optionally, set parameters for the explainer.

LIME Explainers

class aix360.algorithms.lime.lime_wrapper.LimeImageExplainer(*argv, **kwargs)

This class wraps the source class LimeImageExplainer available in the LIME library. Additional variables or functions from the source class can also be accessed via the ‘explainer’ object variable that is initialized in ‘__init__’ function of this class.

Initialize lime Image explainer object

explain_instance(*argv, **kwargs)

Explain one or more input instances.

set_params(*argv, **kwargs)

Optionally, set parameters for the explainer.

class aix360.algorithms.lime.lime_wrapper.LimeTabularExplainer(*argv, **kwargs)

This class wraps the source class LimeTabularExplainer available in the LIME library. Additional variables or functions from the source class can also be accessed via the ‘explainer’ object variable that is initialized in ‘__init__’ function of this class.

Initialize lime Tabular Explainer object

explain_instance(*argv, **kwargs)

Explain one or more input instances.

set_params(verbose=0)

Optionally, set parameters for the explainer.

class aix360.algorithms.lime.lime_wrapper.LimeTextExplainer(*argv, **kwargs)

This class wraps the source class LimeTextExplainer available in the LIME library. Additional variables or functions from the source class can also be accessed via the ‘explainer’ object variable that is initialized in ‘__init__’ function of this class.

Initialize lime text explainer object.

explain_instance(*argv, **kwargs)

Explain one or more input instances.

set_params(*argv, **kwargs)

Optionally, set parameters for the explainer.