A loan application is used by borrowers to apply for a loan. Through the loan application, borrowers reveal key details about their finances to the lender. The loan application is crucial to determining whether the lender will grant the request for funds or credit.
Bank identified that going through the loan applications to filter the people who can be granted loans or need to be rejected is a tedious and time-consuming process. If this process can be automated, this will increase bank’s efficiency as well as transparency and a better decision.
The idea behind this ML project is to build an ML model and web application that the bank can use to classify if a user can be granted a loan or not.
Using F1 Score. Its a harmonic mean of precision and recall.
This is part of DPhi bootcamp and details of this specific problem can be found in below link:
https://dphi.tech/practice/challenge/54#data
Training and test data are available in the links below:
- Train: https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_train.csv
- Test: https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_test.csv
Following steps are performed:
- Read the data and perform necessary cleaning and EDA. (Loan_Application.ipynb)
- Training various models and tune it. (Loan_Application.ipynb)
- Select best performing model and serialize it using pickle. (Loan_Application.ipynb)
- Build an webapp using Flask framework. (app.py)
- Host using Heroku, a Platform as a service.
Based on the data entered on the website and ML Model predicts the whether Loan Application is Approved or Rejected.
Below is the website hosted in Heroku.