PDPs and ICE Plots | Python Code | scikit-learn Package

Published: 06 May 2024
on channel: A Data Odyssey
2,958
55

Both Partial Dependence Plots (PDPs) and Individual Conditional Expectation (ICE) plots are a popular explainable AI (XAI) method. They can visualise the relationships used by a machine learning model to make predictions. In this video, we will see how to apply the methods using Python. We will use the scikit-learn package and the PartialDependenceDisplay & partial_dependence functions.

We will see that this allows us to easily visualise the plots including:
PDPs for individual features
2-dimensional PDPs
Custom ICE Plots
ICE Plots for categorical features
ICE Plots for binary target variables

🚀 Free Course 🚀
Signup here: https://mailchi.mp/40909011987b/signup
XAI course: https://adataodyssey.com/courses/xai-...
SHAP course: https://adataodyssey.com/courses/shap...

🚀 Companion article with link to code (no-paywall link): 🚀
https://medium.com/data-science/the-u...

🚀 Useful playlists 🚀
XAI:    • Explainable AI (XAI)  
SHAP:    • SHAP  
Algorithm fairness:    • Algorithm Fairness  

🚀 Get in touch 🚀
Medium:   / conorosullyds  
Threads: https://www.threads.net/@conorosullyds
Twitter:   / conorosullyds  
Website: https://adataodyssey.com/

🚀 Chapters 🚀
00:00 Introduction
00:51 Application with scikit-learn
02:21 Applying PDPs
08:22 Custom ICE Plot
09:48 2D PDPs
10:54 Categorical features
11:47 Binary target variables


On this page of the site you can watch the video online PDPs and ICE Plots | Python Code | scikit-learn Package with a duration of hours minute second in good quality, which was uploaded by the user A Data Odyssey 06 May 2024, share the link with friends and acquaintances, this video has already been watched 2,958 times on youtube and it was liked by 55 viewers. Enjoy your viewing!