A Machine Learning web application built with Streamlit that predicts whether a customer is a Good Credit Risk or Bad Credit Risk using a trained Logistic Regression model.
- Predict customer credit risk
- Logistic Regression model
- One-Hot Encoding preprocessing
- CSV Upload Support
- Download prediction results
- User-friendly Streamlit interface
Credit_Risk_App/
│── app.py
│── credit_risk_model.pkl
│── feature_names.pkl
│── german_credit_data.csv
│── requirements.txt
│── README.md
- Logistic Regression
- Decision Tree
- Random Forest (Performance Comparison)
Logistic Regression
Performance:
- Accuracy: 79%
- ROC-AUC: 0.83
German Credit Dataset
Features include:
- Account Status
- Credit History
- Credit Amount
- Savings
- Employment
- Age
- Housing
- Purpose
- Job
- Foreign Worker
- and more.
Target Variable:
- Good Credit
- Bad Credit
Clone the repository
git clone <your-repository-link>Install dependencies
pip install -r requirements.txtRun the application
streamlit run app.py- Launch the Streamlit application.
- Upload a CSV file containing customer information.
- Click upload.
- View predicted credit risk.
- Download prediction results as CSV.
- Accuracy
- Precision
- Recall
- F1-Score
- ROC-AUC
- Python
- Streamlit
- Pandas
- NumPy
- Scikit-learn
- Joblib
This project is developed for educational purposes.