SannketNikam / Credit-Risk-Analysis

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🏦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

About

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

https://credito.pythonanywhere.com


Languages

Language:Jupyter Notebook 75.1%Language:CSS 16.8%Language:HTML 7.5%Language:Python 0.6%Language:JavaScript 0.0%