Skip to content

atharva49/Credit-Score-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Credit-Score-Classification deployed on FLASK web service framework

Banks and credit card companies calculate your credit score to determine your creditworthiness. There are three credit scores that banks and credit card companies use to label their customers: Good Standard Poor A person with a good credit score will get loans from any bank and financial institution. It helps banks and credit card companies immediately to issue loans to customers with good creditworthiness and reduce the chances of fraud from its culstomers. I have used Random Forest algorithm to classify the customer based on their credit history in the database.

The following model is deployed on FLASK webservice.

This project is a Flask-based web application that classifies credit scores using a machine learning model. Users can input their age, income, and loan amount to receive a prediction of their credit score status (good or bad).

Table of Contents

Overview

The goal of this project is to provide a simple web interface for predicting credit scores based on user inputs. The application uses a logistic regression model trained on a hypothetical dataset. This project aims to demonstrate how machine learning models can be integrated into web applications to provide real-time predictions.

Features

  • User-friendly web interface for inputting data.
  • Real-time prediction of credit score status.
  • Preprocessing and scaling of input data for accurate predictions.
  • Clear and informative result presentation.

Technologies Used

  • Python
  • Flask
  • Scikit-Learn
  • Pandas
  • Numpy
  • HTML
  • CSS

Project Details

Data Collection

The application uses a hypothetical dataset (credit_data.csv) containing features such as age, income, and loan amount, which are relevant for credit score classification. The dataset is used to train a logistic regression model to distinguish between good and bad credit scores.

Data Preprocessing

The data is preprocessed to handle missing values, scale numerical features, and split into training and testing sets. The preprocessing steps ensure the model performs well on unseen data.

Machine Learning Model

A logistic regression model is chosen for its simplicity and effectiveness in binary classification tasks. The model is trained using the preprocessed data, and its performance is evaluated to ensure accuracy.

Web Application

The Flask framework is used to create a web application that allows users to input their data and receive credit score predictions. The application consists of two main pages:

  • Home Page: A form where users can input their age, income, and loan amount.
  • Result Page: Displays the prediction result based on the user input.

Deployment

The application is designed to be run locally. Detailed instructions are provided to set up the environment, train the model, and start the Flask server.

Contributing

The following graphs are used to get idea relational between the variables

Credit Scores Based on Occupation Credit Scores Based on Occupation

Credit Scores Based on Annual Income Credit Scores Based on Annual Income

Credit Scores Based on Number of Bank Accounts Credit Scores Based on Number of Bank Accounts

Credit Scores Based on Number of Credit cards Credit Scores Based on Number of Credit cards

Credit Scores Based on Monthly Inhand Salary Credit Scores Based on Monthly Inhand Salary

Credit Scores Based on the Average Interest rates Credit Scores Based on the Average Interest rates

Credit Scores Based on Number of Loans Taken by the Person Credit Scores Based on Number of Loans Taken by the Person

Credit Scores Based on Average Number of Days Delayed for Credit card Payments Credit Scores Based on Average Number of Days Delayed for Credit card Payments

Credit Scores Based on Number of Delayed Payments Credit Scores Based on Number of Delayed Payments

Credit Scores Based on Outstanding Debt redit Scores Based on Outstanding Debt

Credit Scores Based on Credit Utilization Ratio Credit Scores Based on Credit Utilization Ratio

Credit Scores Based on Credit History Age Credit Scores Based on Credit History Age

Credit Scores Based on Total Number of EMIs per Month Credit Scores Based on Total Number of EMIs per Month

Credit Scores Based on Amount Invested Monthly Credit Scores Based on Amount Invested Monthly

Credit Scores Based on Monthly Balance Left Credit Scores Based on Monthly Balance Left

The following co-relation heat-map is used to select the variables for training the model. CreditScoreClassificationOutput

About

There are three credit scores that banks and credit card companies use to label their customers: Good Standard Poor A person with a good credit score will get loans from any bank and financial institution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages