Binary Classification Model for LendingClub Loan Data Using Python and XGBoost

Template Credit: Adapted from a template made available by Dr. Jason Brownlee of Machine Learning Mastery.

SUMMARY: This project aims to construct a predictive model using various machine learning algorithms and document the end-to-end steps using a template. The Kaggle LendingClub Loan Data dataset is a binary classification situation where we attempt to predict one of the two possible outcomes.

INTRODUCTION: The Kaggle dataset owner derived this dataset from the publicly available data of LendingClub.com. Lending Club connects people who need money (borrowers) with people who have money (investors). An investor naturally would want to invest in people who showed a profile of having a high probability of paying back the loan. The dataset uses the lending data from 2007 to 2010, and we will try to predict whether the borrower paid back their loan in full.

ANALYSIS: The performance of the preliminary XGBoost model achieved a ROC-AUC benchmark of 0.8103. After a series of tuning trials, the refined XGBoost model processed the training dataset with a final ROC-AUC score of 0.8491. When we applied the last model to Kaggle’s test dataset, the model achieved a ROC-AUC score of 0.6039.

CONCLUSION: In this iteration, the XGBoost model appeared to be a suitable algorithm for modeling this dataset.

Dataset Used: Kaggle LendingClub Loan Data

Dataset ML Model: Binary classification with numerical and categorical attributes

Dataset Reference: https://www.kaggle.com/itssuru/loan-data

One potential source of performance benchmark: https://www.kaggle.com/itssuru/loan-data/code

The HTML formatted report can be found here on GitHub.