How to understand your customers and interpret a black box model

Making use of the Random Forest classifier and SHAP

Photo by Luku Muffin on Unsplash

Data

There are no NULL values in the dataset

Exploratory Data Analysis (EDA)

It is difficult to find any correlations from the table. So let us visualize the results

Data Preparation

Random Forest Classifier

The sizes of the train and test sets

SHAP Plots

SHAP summary plot
SHAP waterfall plot
SHAP dependence plot for duration
SHAP dependence plot for euribor3m
SHAP dependence plot for emp.var.rate
SHAP dependence plot for nr.employed

Summary

Reference

Data Scientist @ Rakuten | 💜 Data Science and Psychology | https://www.linkedin.com/in/aigerimshopenova/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store