Score Credit AI
Technologies used
Python
Pandas
scikit-learn
Jupyter Notebook
About the project
A credit classification project built in a Jupyter notebook. Using historical data such as income, debt, credit usage and late payments, the model predicts whether a new customer falls into the Poor, Standard or Good credit category.
Objective and outcome
Objective
Practice the machine learning workflow from preparing the data to making predictions on new records. I compared two classifiers to see how each performed across the three credit categories.
Outcome
Random Forest achieved the highest test accuracy and was used to classify records without a credit score in a second CSV.
How I built it
How it works
The notebook reads the historical data and keeps all records for a given customer together in either the training or test set. It then prepares numeric and categorical features and compares Random Forest with K-Nearest Neighbors (KNN) using accuracy, per-class metrics and a confusion matrix.
Evaluation and prediction
On a test set of 30,000 records, Random Forest reached 68.63% accuracy and KNN reached 61.45%. I used Random Forest to predict customer categories in a second CSV containing records with missing credit scores.


