interpret_community.mimic.models.explainable_model module

Defines the base API for explainable models.

class interpret_community.mimic.models.explainable_model.BaseExplainableModel(**kwargs)

Bases: abc.ABC, interpret_community.common.chained_identity.ChainedIdentity

The base class for models that can be explained.

abstract property expected_values

Abstract property to get the expected values.

abstract explain_global(**kwargs)

Abstract method to get the global feature importances from the trained explainable model.

abstract explain_local(evaluation_examples, **kwargs)

Abstract method to get the local feature importances from the trained explainable model.

static explainable_model_type()

Retrieve the model type.

abstract fit(**kwargs)

Abstract method to fit the explainable model.

abstract property model

Abstract property to get the underlying model.

abstract predict(dataset, **kwargs)

Abstract method to predict labels using the explainable model.

abstract predict_proba(dataset, **kwargs)

Abstract method to predict probabilities using the explainable model.