Explainable Artificial Intelligence (VTR UGE 21), day 4 of 5
Prof. Dr. Utku Kose, Süleyman Demirel University
Part A runs the deletion and insertion tests in the browser. Part B classifies four reliability diagrams by eye. Part C computes two fairness measures by hand.
A model of eight features explains twenty cases. Choose an explanation method and run the deletion and insertion tests: Features that support the prediction are removed first, or added first, and the probability of the predicted class is recorded. A faithful explanation makes the deletion curve fall fast and the insertion curve rise fast. Every run is compared with a random ranking, which any method must beat.
| Run | Explanation | Noise | Deletion AUC | Insertion AUC | Faithfulness | Beats random? |
|---|
Continue in Colab, section 6: the same test with SHAP, LIME and a random forest on real data.
Each diagram plots the observed frequency against the mean predicted probability in bins, for one model. The dashed diagonal is perfect calibration. Decide what each model does and press Check the diagrams.
A credit model was applied to 100 applicants of each group. Compute the two fairness measures of the lecture from the counts and press Check my values.
| Group | Applicants | Would repay | Approved, of those who would repay | Approved, of those who would not |
|---|---|---|---|---|
| A | 100 | 60 | 45 | 5 |
| B | 100 | 50 | 18 | 2 |
Continue in Colab, section 5: a full fairness audit and the proxy that carries the gap.
Answer each question, rate your confidence and check the answer. Results stay in this browser.
Write a short answer to each question. The text is saved in this browser and is included when you export the learning log.