Git Product home page Git Product logo

sannketnikam / credit-risk-analysis Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 6.62 MB

Credito - Credit Risk Analysis using XGBoost Classifier with RandomizedSearchCV for loan approval decisions.

Home Page: https://credito.pythonanywhere.com

Jupyter Notebook 75.10% JavaScript 0.01% CSS 16.77% HTML 7.53% Python 0.59%
credit-risk-assessment decision-tree-classifier label-encoding logistic-regression xgboost-classifier flask-application model-pickle randomizedsearchcv pythonanywhere banking hyperparameter-tuning loan-default-prediction one-hot-encoding

credit-risk-analysis's Introduction

🏦Credit Risk Analysis💸

What is Credit Risk Analysis?

Credit Risk Analysis is an important process that enables lenders, credit rating agencies, and other financial institutions to evaluate the creditworthiness of borrowers and make informed decisions about extending credit. In this project, we will be using the XGBoost algorithm to predict whether a borrower is likely to default on a loan or not.

Dataset

The dataset used in this project contains information about the loan issued including the Loan ID, Gender, Married, Dependents, Education, Self Employed, Applicant Income, Co-Applicant Income, Loan Amount, Loan Amount Term, Credit History, Property Area and Loan Status.

Preprocessing

Before building our XGBoost model, the data was preprocessed by handling missing values, converting categorical variables to numerical and Label Encoding some features.

Model Building

We will be using XGBoost, a popular gradient boosting algorithm, to predict the likelihood of loan default. We will train the model on the preprocessed data and evaluate its performance using metrics such as accuracy, precision, recall, and F1-score.

Results

Our XGBoost model achieves an accuracy of 85% indicating that it is a good predictor of loan default.

Conclusion

In this project, we have demonstrated the use of XGBoost for credit risk analysis. By training a model on the loan dataset, we were able to predict the likelihood of loan default with high accuracy. This type of analysis can be useful for lenders and other financial institutions to make informed decisions about extending credit to borrowers.

Loan Approval Page:

Installation:

  1. Clone the repository to your local machine:
git clone https://github.com/SannketNikam/Credit-Risk-Analysis.git
  1. Install the 'requirements.txt':
pip install -r requirements.txt
  1. To run this project :
python app.py
  1. Visit your browser at:
http://127.0.0.1:8080

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.