Introductory videos for Explanatory Model Analysis with R

Remote teaching at my university encouraged me to prepare some video materials for Explanatory Model Analysis techniques, i.e. techniques of exploration, explanation and visualisation of predictive models.

The pyramid for Explanatory Model Analysis. Left part is focused on a single observation (instance-level or local explanations). Right part is focused on the whole data set (called dataset level or global explanations). In the first row are raw model predictions and model statistics. The second row is related to the analysis of model parts. The third row describes the profile of model behaviour depending on the values of individual variables. The fourth row corresponds to the residual diagnostics.

For example, for a model that estimates odds of default in credit scoring, the model level analysis focuses on explaining the model’s behaviour for a selected population of customers.

The ebook describing these techniques was already available at
Today I have published a youtube playlist with short videos showing how to use these techniques in R.

For now, the first 5 videos are available for instance level analysis. These videos are focused on the DALEX package for R. You can read about other R packages for XAI and more about the methodology in the ebook.

Here are these videos

2. Introduction to the DALEX package and other tools from the DrWhy.AI family (e.g. modelDown and modelStudio)

3. Instance level attribution with break-down method for determining variables important for a prediction. The break-down method decomposes predictions of any model into parts that can be attributed to model variables.

4. Instance level attribution with Shapley values and break-down with interactions. Both extends break downs possibilities.

5. Presentation of the ceteris paribus method for the analysis of model response profile for selected variables for the indicated observation.

The whole playlist is at

Supplementary materials are at

Now we’re working on videos for the python version of this package. Stay tuned!

Questions or comments? Let me know at ema at

Warm thanks to everyone who helped me to prepare these videos, especially Wojciech Kretowicz, Huber Baniecki, Alicja Gosiewska, Anna Kozak and Katarzyna Woźnica.

Interested in innovations in predictive modeling. Posts about eXplainable AI, IML, AutoML, AutoEDA and Evidence-Based Machine Learning. Part of