kaggle-project-loan-prize

My Kaggle competition solution.

Loan Prize Prediction – Kaggle ROC-AUC Pipeline

Object

Build a classification model that predicts the likelihood of a borrower paying back a loan.

Problem

Financial institutions find it hard to assess loan repayment risk accurately. This is particularly challenging with imbalanced borrower data and a mix of categorical and numerical features.

How I Solved It

I created a complete Kaggle-ready ML pipeline that:

  1. Loads and preprocesses loan data
  2. Converts categorical columns to category dtype for tree models
  3. Trains XGBoost + LightGBM using Stratified K-Fold OOF
  4. Blends predicted probabilities through stacking
  5. Evaluates using ROC-AUC and RMSE
  6. Generates Kaggle submission CSV

What We Used

Why Use Boosted Tree Models for Loan Prediction?

Using both models provides better stability than depending on one, especially on synthetic Kaggle playground data.

Tools & Libraries

| Tool | Purpose | |——|———| | Pandas, NumPy | Data cleaning and analysis | | XGBoost | Gradient Boosted Decision Trees | | LightGBM | Fast Leaf-wise Boosting | | Scikit-Learn | Stratified K-Fold, ROC-AUC, Metrics | | Kaggle Notebook | Model execution and submission |

Outcomes

Submission Format

id,loan_paid_back
593994,0.85
593995,0.22
593996,0.11