Coder Social home page Coder Social logo

wamuza1 / credit_risk_analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 18.86 MB

Supervised Machin Learning Analysis using scikit-learn and imbalanced-learn libraries.

Jupyter Notebook 100.00%
adaboost-classifier ensemble-classifier oversampling random-forest smote-sampling smoteen supervised-machine-learning undersampling

credit_risk_analysis's Introduction

Credit_Risk_Analysis

Overview of the Project

Credit risk is an inherently unbalanced classification problem, as good loans easily outnumber risky loans.The purpose of this analysis is to create a supervised machine learning model that accurately predict credit risk. We evaluated various machine learning models to determine which is better at predicting credit risk. We used following algorithms/techniques.

Naive Random Oversampling, SMOTE Oversampling, Cluster Centroid Undersampling, SMOTEENN Sampling, Balanced Random Forest Classifying, Easy Ensemble Classifying.

Use Resampling Models to Predict Credit Risk

Naive Random Oversampling

-Accuracy Score: 66% -Precision High Risk: 1% -Precision Low Risk: 100% -Recall High Risk: 71% -Recall Low Risk: 61%

image

SMOTE Oversampling

-Accuracy Score: 66.2% -Precision High Risk: 1% -Precision Low Risk: 100% -Recall High Risk: 63% -Recall Low Risk: 69%

image

Cluster Centroid Undersampling

Accuracy Score: 54.4% Precision High Risk: 1% Precision Low Risk: 100% Recall High Risk: 69% Recall Low Risk: 4o%

image

Use the SMOTEENN algorithm to Predict Credit Risk

SMOTEENN Sampling

Accuracy Score: 67.4% Precision High Risk: 1% Precision Low Risk: 100% Recall High Risk: 75% Recall Low Risk: 60%

image

Use Ensemble Classifiers to Predict Credit Risk

Balanced Random Forest Classifying

Accuracy Score: 78.7% Precision High Risk: 4% Precision Low Risk: 100% Recall High Risk: 67% Recall Low Risk: 91%

image

Easy Ensemble Classifying

Accuracy Score: 92.5% Precision High Risk: 7% Precision Low Risk: 100% Recall High Risk: 91% Recall Low Risk: 94%

image

Summary

By Looking at the different models outcome, we can say that the models that perform better is "Easy Ensemble Classifying with 91% Recall high risk. Also the percision is lower compared to other models. This model would be the first recommendation performing credit risk analusis.

credit_risk_analysis's People

Contributors

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