XAI use case based on world-happiness data.
Find a live demo: https://pbiecek.github.io/xai-happiness/
-
Get data about happiness from https://www.kaggle.com/unsdsn/world-happiness
-
Train your favorite ML model that will predict the happiness score
-
Explain the model with modelStudio
library("DALEX")
library("modelStudio")
library("ranger")
# get data
happiness <- readRDS("happiness.rds")
# get model and explainer
model <- ranger(score~., data = happiness)
modelr <- explain(model, data = happiness[,-1], y = happiness$score)
# get model studio
ms <- modelStudio(modelr, happiness[c("Poland","Finland","Germany"),],
options = ms_options(margin_left = 220))
ms