Coder Social home page Coder Social logo

ragraw26 / machine-learning-loan-lending-club Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 6.0 56.54 MB

Building Classification & Prediction model to classify the Loan applicant request as approved or rejected and then predict the Interest rate for Loan Approval.

Python 4.24% Shell 0.21% Jupyter Notebook 89.94% JavaScript 3.97% HTML 1.65%
lending-club python3 regression-models classification-algorithm machine-learning docker tableau scikit-learn matplotlib luigi-workflows

machine-learning-loan-lending-club's Introduction

Machine-Learning-Loan-Lending-Club

We are working at a bank and we are considering investing in Lending club. Since there are no standard models, we are expected to build prediction models that will help you predict the interest rates based on various parameters users would input.

Part 1: Data wrangling and exploratory data analysis

Data Download and pre-processing

Our first challenge is to programmatically download the data from https://www.lendingclub.com/info/download-data.action Our goal is to download the data programmatically from the website and create one dataset for the entire database.

Exploratory Data analysis:

 Write a Jupyter notebook using R/Python to graphically represent different summaries of data.Summarize your findings in this notebook.  Summarize your key insights about different user profiles, states, loan amounts etc.  Create a Data scientist view of Power BI dashboards to illustrate your key insights

Part II: Building and evaluating models

Our next goal is to build a model to predict interest rates. we will get leads from people with different profiles and you must decide if you will give loans or not and if you will give a loan, how much interest we would charge for those loans.

Classification

Use the “Loan Data” and the “Declined Loan Data” datasets to build classification models that will generate a flag whether to give a loan or not.  Start with logistic regression using Jupyter and Python/R  Compute ROC curve and Confusion matrices for training and testing datasets and comment on the results.  Repeat this using Random Forest, Neural Network models and SVN algorithms.  Choose one model you will deploy and implement this model on the Microsoft azure machinelearning studio and create a REST API  You should be able to a new record (You can define what features you will use) and the result will be a flag whether you would give a loan or not.

Clustering

Once we have decided to give a loan, you should build models to decide what interest rate to give. We are debating whether to create one model for all customer prospects or segment data into clusters and then build prediction models specific to each cluster. You think of creating segments or clusters and build models one for each cluster. Your brainstorm with your team and come up with 3 possibilities

  1. Segment data into clusters (you define how many) manually using categorical or numerical features. For example, you can segment by state, by ownership of home, by average dti or a combination of features.
  2. You use a clustering algorithm (that can factor both numerical and categorical variables) and segment data into k clusters. You will then build prediction models for each cluster.
  3. No clusters; Just use data as is

Prediction

 Write a prediction script in a Jupyter notebook in R/Python that builds a Regression model for the interest rate using data from the 3 clustering methodologies you worked o Try variable selection and build the best model for each segment/cluster ( o Compute MAE, RMS, MAPE for training and testing datasets o Repeat this using Random Forest, Neural Network models and KNN algorithms. o Choose the best model amongst the 4 types of algorithms. o Deploy the best algorithm/algorithms on Azure ML studio

machine-learning-loan-lending-club's People

Contributors

ragraw26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.