Code Monkey home page Code Monkey logo

predicting-credit-card-approval's Introduction

Predicting Credit Card Approval

Introduction

As manually analysing credit card approval requests are error-prone, time-consuming as well as banks gets lots of requests in which many gets rejects due to numerous reasons such a low income levels. This task has been automated by Machine learning model.

The dataset for this project has been taken from http://archive.ics.uci.edu/ml/datasets/credit+approval from UCI machine learning repository.

Steps followed in the project

  1. The dataset has been imported. The features in the dataset are anonymized by the contributor of dataset.
  2. An attempt to find most important features of a credit card application is made. Exploratory data analysis on the dataset is done.
  3. Missing values in the dataset has been handled( replaced with NaN).
  4. Missing values are imputed using mean imputation strategy for features containing numerical values.
  5. Missing values in other columns are replaced by the most frequent values in respective feature.
  6. Data is preprocessed - Non-numeric data is converted to numeric using label encoding technique, data is splitted into training & test sets, feature values are scaled to a uniform range & un-neccesary features are dropped from the dataset.
  7. Logistic Regression model is fitted & trained on the set.
  8. Predictions are made & model performance i.e. classification accuracy is evaluated as well as confusion matrix.
  9. Model performance is improved using GridSearchCV from sklearn.model_selection to tune hyperparameters.
  10. Best achieved score of the model & respective best paramters are stored.

Instructions to run the code

  1. Make a virtual environment
python3 -m venv env

Activate the virtual environment

source env/bin/activate # This command is for linux 
  1. clone the repository :
git clone https://github.com/divya661/predicting-credit-card-approval.git

Or

Download the zip folder & unzip the folder downloaded

  1. Install the requirements by running the command in terminal:
pip install -r requirements.txt
  1. Open the jupyter notebook and run the file notebook.ipynb in directory predicting-credit-card-approval

predicting-credit-card-approval's People

Contributors

divya661 avatar

Stargazers

 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.