Giter Site home page Giter Site logo

credit_risk_analysis's Introduction

Credit_Risk_Analysis

Overiview

Jill and I are tasked with applying machine learning to solve a real-world challenge: credit card risk. Credit risk is an inherently unbalanced classification problem, with using a credit card data set from LendingClub we will oversample the data using the RandomOverSampler and SMOTE algorithms, and undersample the data using the ClusterCentroids algorithm. Then, you’ll use a combinatorial approach of over- and undersampling using the SMOTEENN algorithm. Next, you’ll compare two new machine learning models that reduce bias, BalancedRandomForestClassifier and EasyEnsembleClassifier, to predict credit risk.

results

image

Looking here we can see the balanced accuracy score (66%) and the precision (99%) and recall scores (60%) for the Naive Random Oversampling.

image

Looking here we can see the balanced accuracy score (66%) and the precision (99%) and recall scores (70%) for SMOTE Oversampling.

image

Looking here we can see the balanced accuracy score (54%) and the precision (99%) and recall scores (40%) for Undersampling.

image

Looking here we can see the balanced accuracy score (64%) and the precision (99%) and recall scores (59%) for Combination Sampling.

image

Looking here we can see the balanced accuracy score (79%) and the precision (99%) and recall scores (87%) for Balanced Random Forest Classifier.

image

Looking here we can see the balanced accuracy score (93%) and the precision (99%) and recall scores (93%) for AdaBoost Sampling.

Summary

Based on the analysis and testing it seems as if AdaBoost performed the best across the metrics. They key metric that it performed best on was recall. AdaBoost preformed the best in the average of all metrics and caught 93% of the fraud cases however it still lacks precision which is a distinguishing factor in uncovering all of these cases. While there may be some flaws in AdaBoost, it seems like it is the best model for our data in order to catch the most fraud claims.

credit_risk_analysis's People

Contributors

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