Predicting Defaults on Credit Card Payments

This model will predict the probability that a credit card holder will default on their payment given their payment history and demographic information.

Load libraries:

library(readxl)
library(xgboost)
library(caTools)
library(config)

Load config file:

model_config <- get("model_config")

This notebook refers to model-a.

Load data

Load the data and view its contents:

# Data from https://archive.ics.uci.edu/ml/datasets/default+of+credit+card+clients
df <- read_excel("data/default-of-credit-card clients.xls", skip = 1)
df