Giter Club home page Giter Club logo

loan_default_prediction's Introduction

Loan Default Prediction

Author: Jihoon Kim

Objective

Objective of this project is modeling loan default prediction system by using Lending Club data.

Data Description

Source: Kaggle Dataset: Lending Club Loan Data

These files contain complete loan data for all loans issued through the 2007-2015, including the current loan status (Current, Late, Fully Paid, etc.) and latest payment information. The file containing loan data through the "present" contains complete loan data for all loans issued through the previous completed calendar quarter. Additional features include credit scores, number of finance inquiries, address including zip codes, and state, and collections among others. The file is a matrix of about 890 thousand observations and 75 variables. A data dictionary is provided in a separate file.

Data

  • loan.csv: 63.6MB (compressed)
  • Training Data: 221,712
  • Test Data : 55,428

Environments

  • Python 3.5
  • TensorFlow 1.2.1
  • Keras 2.0
  • scikit-learn 0.18.2
  • pandas 0.20.2
  • seaborn 0.7.1
  • (Optional) imbalanced-learn 0.2.1 (for upsampling by SMOTE)

Example

Example file can be executed by:

$ python main.py

Dataset should be located in .data/ directory.

Performance

  1. 3-class("bad", "warning" and "safe" loan) classifying: Approximately 90~94% accuracy
  2. 2-class("bad" and "safe") classifying: Approximately: > 98.5% accuracy

Work-Flow

  1. Pre-processing
    • Data Overview
    • Handling Null Valued Features
    • Categorizing Target Variable
  2. Feature Engineering with Exploratory Data Analysis
    • Feature Inspection
    • Visualizing Features
    • Handling Missing Values
    • One-Hot Encoding
    • Train-Test Data Split
    • (optional) Oversampling by SMOTE
  3. Modeling
    • Label Encoding for Training
    • Neural Network Modeling
    • Structure of neural network Optimization and hyper-parameter Tuning with AWS p2.xlarge (Tesla K80) Instance.
  4. Performance
    • Performance on a test set.
    • Confusion Matrix
  5. More..

Detailed explanation is provided by Notebook

loan_default_prediction's People

Contributors

jihoonerd avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.