Model outputs and SHAP values
In this section, we will begin to play with AI fairness, which will prepare us for WIT.
The default display shows the features grouped by feature prediction similarity:
Figure 6.4: SHAP plot
You can change the plot by selecting a feature at the top of the plot. Select social-class_SC2, for example:
Figure 6.5: Selecting social-class_SC2 from the feature list
To observe the model's predictions, choose a feature on the left side of the plot for the y axis. Select model output value, for example:
Figure 6.6: Selecting model output value from the feature list
In the Preparing an ethical dataset section of this chapter, the value of social-class_SC2
represents the level of education of a person, a defendant. A population with a very high level of education has fewer chances of committing physical crimes.
If we select model output value the plot will display the recidivism prediction of the model...