Skip to content

This is my first Project in Machine Learning. I built a classification model to predict loan applicant credit worthiness (good / bad). Implemented preprocessing, one-hot encoding, robust scaling, and hyperparameter tuning. Evaluated model performance using confusion matrix, ROC-AUC, and F1-score.

Notifications You must be signed in to change notification settings

M-codeR-UMER/Credit-Risk-Classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’³ Credit Risk Classifier using Decision Tree

A machine learning project to predict whether a loan applicant is a good or bad credit risk using the kaggle German Credit Dataset with Target.


πŸ“Š Project Objective

To build and evaluate a classification model that predicts the creditworthiness of applicants based on demographic and financial features.


🧠 Algorithms Used

  • βœ… Decision Tree Classifier (with pre-pruning)
  • βœ… GridSearchCV for hyperparameter tuning

πŸ“‚ Dataset Overview

  • Source: UCI Machine Learning Repository
  • Samples: 1000
  • Features: Age, Job, Housing, Saving accounts, Checking account, Credit amount, Duration, Purpose, etc.
  • Target: Risk (good/bad)

πŸ”§ Key Steps Performed

πŸ“Œ Data Preprocessing

  • Handled missing values using mode imputation for categorical fields
  • Applied One-Hot Encoding for multi-class categorical features
  • Scaled numerical features (Age, Credit amount, Duration) using RobustScaler

πŸ§ͺ Model Training

  • Trained a Decision Tree Classifier with:
    • Pre-pruning (max_depth, min_samples_split, min_samples_leaf)
    • class_weight='balanced' to handle class imbalance

πŸ“ˆ Evaluation

  • Confusion Matrix
  • Precision, Recall, F1-Score
  • ROC Curve and AUC Score
  • Comparative ROC plots between multiple decision tree configurations

About

This is my first Project in Machine Learning. I built a classification model to predict loan applicant credit worthiness (good / bad). Implemented preprocessing, one-hot encoding, robust scaling, and hyperparameter tuning. Evaluated model performance using confusion matrix, ROC-AUC, and F1-score.

Topics

Resources

Stars

Watchers

Forks