GithubHelp home page GithubHelp logo

credit_risk_analysis's Introduction

Credit Risk Analysis

Overview

Using the credit card credit dataset from LendingClub, a peer-to-peer lending services company, the goal is to oversample the data using the RandomOverSampler and SMOTE algorithms, and undersample the data using the ClusterCentroids algorithm. Then, use a combinatorial approach of over- and undersampling using the SMOTEENN algorithm. Lastly, compare two new machine learning models that reduce bias, BalancedRandomForestClassifier and EasyEnsembleClassifier, to predict credit risk.

Tools

  • Jupyter Notebooks
  • SciPy
  • SKLearn
  • imbalanced-learn

Results

Oversampling - Naive Random Oversampling

  • Balanced Accuracy Score: 0.65
  • Precision Score: 0.01
  • Recall Score: 0.63

Screen Shot 2022-04-24 at 11 07 57 PM

Oversampling - SMOTE

  • Balanced Accuracy Score: 0.65
  • Precision Score: 0.01
  • Recall Score: 0.64

Screen Shot 2022-04-24 at 11 14 52 PM

Undersampling - Cluster Centroids

  • Balanced Accuracy Score: 0.50
  • Precision Score: 0.01
  • Recall Score: 0.59

Screen Shot 2022-04-24 at 11 17 04 PM

Combination Sampling - SMOTEENN

  • Balanced Accuracy Score: 0.61
  • Precision Score: 0.01
  • Recall Score: 0.69

Screen Shot 2022-04-24 at 11 18 34 PM

Random Forest Classifier

  • Balanced Accuracy Score: 0.78
  • Precision Score: 0.04
  • Recall Score: 0.67

Screen Shot 2022-04-24 at 11 19 19 PM

AdaBoost Classifier

  • Balanced Accuracy Score: 0.93
  • Precision Score: 0.07
  • Recall Score: 0.91

Screen Shot 2022-04-24 at 11 20 47 PM

Summary

  • The AdaBoost Classifier has the highest Balanced Accuracy Score out of all of the classifiers and sampling methods tested in this project. This should be the classifier used to predict risk in this challenge.
  • Nonetheless, I would not recommend using any of these classifiers. Even the best one (AdaBoost Classifier) has a low precision for high-risk data points (0.07).

credit_risk_analysis's People

Contributors

jncurrea avatar

Watchers

 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.