Giter Club home page Giter Club logo

credit_risk_clustering's Introduction

Credit risk classification


Welcome to my repository for the credit risk classification. Please explore the codebase!


Analytical Summary

This project presents a classification model that identifies creditworthiness of borrowers.


Technologies

This project leverages python 3.7 with the following packages:

  • pandas - Library for reading/writing csv files and fast manipulation with DataFrames.

  • numpy - Library for working with arrays.

  • pathlib - Library for filesystem paths.

  • sklearn - Library for predictive-data analysis.

  • imblearn - Library for working with imbalanced classes.


Installation Guide

Before running the application first install the following dependencies.

from imblearn.metrics import classification_report_imbalanced
import warnings

  pip install pandas
  pip install numpy
  pip install pathlib
  pip install -U scikit-learn
  pip install imblearn

Usage

To use this project simply clone the repository and run the code credit_risk_resampling.ipynb in JupyterLab or in VS Code.


Methodologys

This script uses classification model, logistic regression model, to predict creditworthiness of borrowers. The algorithm overcomes the problem with imbalanced classes by resampling the training set. The dataset takes on the following form:

snippet of our code

The first model runs on the randomly spit training/testing datasets without resampling.

snippet of our code

The accuracy measures indicate quite a high forecasting accuracy for this first model:

snippet of our code

The second model runs on the resampled dataset: snippet of our code

and also proves to be very accurate:

snippet of our code

License

MIT


credit_risk_clustering's People

Contributors

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