alibi.explainers.anchors.anchor_explanation module
- class alibi.explainers.anchors.anchor_explanation.AnchorExplanation(exp_type, exp_map)[source]
Bases:
object
- __init__(exp_type, exp_map)[source]
Class used to unpack the anchors and metadata from the explainer dictionary.
- examples(only_different_prediction=False, only_same_prediction=False, partial_index=None)[source]
- Parameters:
only_different_prediction (
bool
) – IfTrue
, will only return examples where the result makes a different prediction than the original model.only_same_prediction (
bool
) – IfTrue
, will only return examples where the result makes the same prediction than the original model.partial_index (
Optional
[int
]) – Get the examples from the partial result until a certain index.
- Return type:
- Returns:
Examples covered by result.