A machine learning pipeline that classifies a customer's credit score category from financial and behavioral data.
- Dataset: 100,000 records, 22 features (income, credit history, payment behavior, etc.)
- Data cleaning: de-duplicated and cleaned down to 86,932 high-quality records used for modeling
- Task: multi-class classification of credit score bracket
- Exploratory Data Analysis (EDA) — null values, duplicates, distributions
- Feature engineering to surface key credit-risk indicators
- Train/test split
- Model comparison: Logistic Regression, Decision Tree, Random Forest
- Evaluation on held-out test data to guard against overfitting
| Model | Accuracy |
|---|---|
| Logistic Regression | 53% |
| Decision Tree | 70% |
| Random Forest (best) | 77.4% |
Python · Scikit-learn · Pandas · NumPy · Seaborn · Matplotlib
pip install -r requirements.txtPlace credit_score.csv in the project root, then run the notebook.
- Hyperparameter tuning via GridSearchCV / Optuna
- Try gradient boosting (LightGBM/XGBoost) for comparison
- SHAP-based feature importance for model explainability