Giter Club home page Giter Club logo

credit-score-prediction's Introduction

README

Author

Wadood Alam

Date

18th March 2024

Assignment

AI 539 Final Project: Credit Score Evaluation

Dataset Download Link

https://github.com/wadoodalam/Credit-Score-Prediction/blob/main/10kData.csv

Dependencies / Imports Required

  • Python
  • NumPy
  • Pandas
  • train_test_split
  • StratifiedGroupKFold
  • Scikit-learn
  • accuracy_score
  • confusion_matrix
  • HistGradientBoostingClassifier
  • DummyClassifier
  • scipy.stats.mstats: winsorize
  • time
  • imblearn.under_sampling: RandomUnderSampler
  • compute_sample_weight
  • re(regex)
  • matplotlib.pyplot

Instructions

Program 1: Data Pre-processing & Data Profile

Execution

  1. Install the required dependencies using pip
  2. Ensure Dataset(train.csv) is contained in the same directory
  3. Run the program using the command data_profile.py
  4. The program will print Total number of missing values, Total number of missing values, Number of numerical features:
  5. The program will generate 4 csv files, 1 xlsx file, and 5 png files
  6. 10kdata.csv: The cleaned version of dataset containing 10,000 rows and 34 features
  7. Cat_profile.csv: The data profile for the 4 relevant categorical features
  8. correlation_matrix.xlsx: Correlation matrix
  9. profile.csv: The data profile for numeric features
  10. Credit_Mix.png: Representation of Credit_Mix feature
  11. Credit_Score.png: Representation of Credit_Score feature
  12. missing_values.png: Representation of the name of the feature with missing value and the number of values missing for each feature
  13. Month.png: Representation of Month feature
  14. Payment_Behaviour.png: Representation of Payment_Behaviour feature

Program 2: Training and Evaluating

Execution

  1. Install the required dependencies using pip(if not installed previously)
  2. Ensure Dataset(10kdata.csv) is contained in the same directory
  3. Run the program using the command train_eval.csv
  4. The program will output 3 dictionaries for accuracies, 3 dictionaries for runtime, 3 dictionaries for confusion matrices
  5. The directories for confusion matrices and accuracies follow the following format: {'Strategy name':[Train-test-split, Stratified Group-wise Cross-Validation],...}
  6. The runtime dictionary will follow the following format: Run Time: {'Strategy name': [],...}
  7. The program will generate 1 csv file called outliers.csv to visualize outliers

Files in the directory

  1. train.csv
  2. 10kdata.csv
  3. Cat_profile.csv
  4. correlation_matrix.xlsx
  5. profile.csv
  6. Credit_Mix.png
  7. Credit_Score.png
  8. missing_values.png
  9. Month.png
  10. Payment_Behaviour.png

credit-score-prediction's People

Contributors

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