Anchors AI explanations
Anchors are high-precision model-agnostic explanations. An anchor explanation is a rule or a set of rules. The rule(s) will anchor the explanations locally. Changes to the rest of the feature values will not matter anymore for a specific instance.
The best way to understand anchors is through examples. We will define anchor rules through two examples: predicting income and classifying newsgroup discussions.
We will begin with an income prediction model.
Predicting income
In Chapter 5, Building an Explainable AI Solution from Scratch, we built a solution that could predict income levels.
We found a ground truth that has a strong influence on income: age and level of education are critical features that determine the income level of a person.
The first key feature we found was that age is a key factor when predicting the income of a person, as shown in the following chart:
Figure 11.1: Income by age
The red...