8. Explainable Artifical Intelligence (XAI):#
In this chapter, the learning objectives are:
Understand the importance of XAI
Distinguish local explanations methods from global ones
Distinguish model-agnostic explanation methods from model-specific ones
Know how to implement permutation feature importance and partial depedence plots
Have a basic understanding on explanation methods for neural networks
The Exercises will help you to learn:
How to generate PDPs and calculate permutation feature importance for ML models trained on tabular data.
Have a basic understanding on a [
SHAP
], a popular package containing many useful ML explanation tools.Understand how the values shown in SHAP figures are linked to PDPs.
Learn how to use the beautiful figures available in [
SHAP
].Apply [
SHAP
] explainers on an image dataset.
This week’s exercises:
This exercise adapts the tutorial codes in the scikit-learn library and SHAP library, and apply these methods to some datasets we have already seen in previous exercises.
If you are struggling with some of the exercises, do not hesitate to:
Use a direct Internet search, or stackoverflow
Ask your neighbor(s), the teacher, or the TA for help
Debug your program, e.g. by following this tutorial
Use assertions, e.g. by following this tutorial
Way to go with the flow 😎🌧🌧🏄🌧🌧
If you’re done early, consider:
Giving feedback on how to improve this notebook (typos, hints, exercises that may be improved/removed/added, etc.) by messaging the teacher and TA(s) on Moodle
Working on your final project for this course.
Final Project The final project’s goal is to answer a well-defined scientific question by applying one of the ML algorithms introduced in class on an environmental dataset of your choice (e.g., related to your Masters thesis or your PhD research).
Now that you found a large environmental dataset linked to a scientific question you are passionate about, which machine learning algorithm can you use to address it? Is it a classification, a regression, or a data exploration project?
How could you format the dataset to facilitate its manipulation in Python?
If you’re still hunting for a dataset of interest, consider browsing the list of benchmark datasets maintained by Pangeo and Kaggle.