How phamtiendung1304/hybrid-credit-scoring-vietnam works
This research toolkit assesses credit risk for Vietnamese Gen Z thin-file applicants by combining traditional CIC bureau features with digital behavioral signals. Its documented workflow runs from synthetic or proprietary data through cleaning and feature construction to model training, evaluation, and interpretation. The repository has no sampled top-level workflow orchestrator, so the graph does not assert one. Model variants and calibration are included as documented capabilities; some connections to those unsampled implementations remain unverified.
Main entry points: xgboost_model.py Hybrid XGBoost · metrics.py Credit metrics · base_model.py Model interface · cleaner.py Data cleaner
Components 18
Data preparation
- Synthetic generator
hybrid-credit-scoring-vietnam/src/data/synthetic_generator.py - Data loader
hybrid-credit-scoring-vietnam/src/data/loader.py - Data cleaner
hybrid-credit-scoring-vietnam/src/data/cleaner.py
Feature engineering
- Bureau features
hybrid-credit-scoring-vietnam/src/features/traditional_features.py - Behavioral features
hybrid-credit-scoring-vietnam/src/features/behavioral_features.py - Feature selection
hybrid-credit-scoring-vietnam/src/features/feature_selector.py
Scoring models
- Model interface
hybrid-credit-scoring-vietnam/src/models/base_model.py - Hybrid XGBoost
hybrid-credit-scoring-vietnam/src/models/xgboost_model.py - Logistic regression
hybrid-credit-scoring-vietnam/src/models/logistic_model.py - Random forest
hybrid-credit-scoring-vietnam/src/models/random_forest_model.py - LightGBM
hybrid-credit-scoring-vietnam/src/models/lightgbm_model.py
Evaluation and interpretation
- Credit metrics
hybrid-credit-scoring-vietnam/src/evaluation/metrics.py - Calibration
hybrid-credit-scoring-vietnam/src/evaluation/calibration.py - EDA plots
hybrid-credit-scoring-vietnam/src/visualization/eda_plots.py - Model plots
hybrid-credit-scoring-vietnam/src/visualization/model_plots.py - SHAP analysis
hybrid-credit-scoring-vietnam/src/visualization/shap_plots.py
Other components
- Researcher
- Credit data
Connections 22
- Researcher → Synthetic generator: generates sample data
hybrid-credit-scoring-vietnam/src/data/synthetic_generator.py - Researcher → Credit data: supplies proprietary data
- Credit data → Data loader: loads data
- Synthetic generator → Data loader: may load generated data
- Data loader → Data cleaner: provides records
- Data cleaner → Bureau features: prepares bureau inputs
- Data cleaner → Behavioral features: prepares behavioral inputs
- Bureau features → Feature selection: selects predictive features
- Behavioral features → Feature selection: selects predictive features
- Model interface → Hybrid XGBoost: implemented by
hybrid-credit-scoring-vietnam/src/models/xgboost_model.py - Model interface → Logistic regression: implemented by
hybrid-credit-scoring-vietnam/src/models/logistic_model.py - Model interface → Random forest: implemented by
hybrid-credit-scoring-vietnam/src/models/random_forest_model.py - Model interface → LightGBM: implemented by
hybrid-credit-scoring-vietnam/src/models/lightgbm_model.py - Feature selection → Hybrid XGBoost: provides selected features
- Hybrid XGBoost → Credit metrics: evaluated with metrics
- Logistic regression → Credit metrics: benchmarked with metrics
- Random forest → Credit metrics: benchmarked with metrics
- LightGBM → Credit metrics: benchmarked with metrics
- Hybrid XGBoost → Calibration: assessed for calibration
- Credit metrics → Model plots: visualizes evaluation
- Hybrid XGBoost → SHAP analysis: interpreted with SHAP
- Credit data → EDA plots: explored with plots