Business Context: Credit scoring is the set of decision models and their underlying techniques that aid lenders in the granting of consumer credit. Typical application areas in the consumer market include: creditcards, autoloans, home loans and a wide variety of personal loan products.
- In this case study, One of the leading banks would like to predict customers who are most likely to default on the loan.
- For new customers we need to decide whether to extend credit or not by analyzing the behaviour of existing customers.
- Brief Summary about the techniques used in the project. For full report check out the CreditRiskAnalytics Summary
- ROC Curve - An ROC curve (receiver operating characteristic curve) is a graph showing the performance of a classification model at all classification thresholds.
- Finding the best cufoff point - which maximises the specificity and the sensitivity. This threshold point might not give the highest prediction in your model, but it wouldn't be biased towards positives or negatives.
The Installation process will get you a copy of the project up and running on your local machine for development and testing purposes
- Clone or download the project into your local machine.
- Unzip the project folder.
- Open the source file CreditRiskAnalytics-DefaultModel using JypyterNotebook and execute the file.
- Instead of step 3, use the classification model loaded in the pickle to classify default customers.
import pickle
# load the model from disk - use to classify the default customers directly
loaded_model = pickle.load(open('OutPutModel/final_model.pkl', 'rb'))
print("Loaded Decision tree model :: ", loaded_model)
- After successfully loading the saved model, we can use them in the general way to predict for test dataset or in the production servers.
The following list summarizes the packages/softwares used in this project. These are the softwares/packages you neeed to install before executing the project file.
- Anaconda v – 5.2.0 (py 36_3)
- Python v – 3.6.5
- Packages (Packages that are not part of anaconda distribution, need to install using pip installer)
- export_graphviz (pip install graphviz)
- pydot graphviz (pip install pydot graphviz)
- pydotplus (pip install pydotplus)
- Data Folder -- Contains Raw Data Files
- Problem Statement -- Case Study Business Problem Statement
- CreditRiskAnalytics Summary -- Credit Risk Analytics Project Summary Report
- CreditRiskAnalytics-DefaultModel -- Project Source Code File
- LogisticRegression-KSChart -- Excel Template File for Lift and Gain Charts
Copyright (c) 2018 Niranjan Kumar Licensed under the Apache License 2.0
All other trademarks referenced herein are the property of their respective owners.