-
Create python virtual environment
python -m venv env_shap
-
Activate your virtual environment
env_shap\Scripts\activate -- Windows
source env_shap/bin/activate -- Ubuntu
-
Install all the packages in your virtual environment
pip install -r requirements.txt
-
Create kernel
python -m ipykernel install --user --name shap --display-name shap-kernel
-
Launch Jupyter notebook
jupyter lab
-
Connect jupyter to kernel shap-kernel
You can find out more details in the below youtube videos
-
Partial dependency plot: How feature impact model prediction? https://youtu.be/BgUMI8_oSRI
-
SHAP Dependency Plot : How feature interaction impact model prediction? https://youtu.be/eDoKwho03vk
-
How does SHAP model interpretation work? https://youtu.be/mp4xYRUq9-U
-
How SHAP global feature importance is different from XGBOOST Feature importance? https://youtu.be/kFEOQlepXPo
-
Why does the model think that a given customer will churn? What explanation SHAP can provide to the end-user? https://youtu.be/UAFEVtIw4h4