Skip to content

nphan20181/csce5380_project

Repository files navigation

Identifying Profitable LendingClub Loans using Decision Tree

Build a Decision Tree classifier from scratch to identify profitable Lending loans.

Instructions

  • Download LendingClub loan data on Kaggle
  • Call the Python command to install the required libraries: pip3 install -r py_libraries.txt
  • Run the Jupyter notebook data_preprocessing.ipynb
  • Open the terminal and run the data sampling program using the command: python stratified_sampling.py
  • Call the main program and follow the instruction on the screen using the command: python main.py

Contents

Document

Jupyter Notebooks

Python Programs

  • Data Sampling
    • Command: python stratified_sampling.py
    • Call this program to perform stratified sampling on the pre-processed data.
  • DT.py - this module contains:
    • Two classes: Node and DecisionTree.
    • Utility functions for making predictions and evaluating the model.
  • Main
    • Command: python main.py
    • Call this program to build a Decision Tree or display result of a previously built tree.
    • Screen Shot of Main

Text File

About

Build Decision Tree model from scratch to classify profitable LendingClub loans.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors