How khushikumari-2003/credit-risk-analysis-system works
This is a Streamlit credit-risk assessment application. An applicant supplies personal, loan, and credit details; the app predicts default probability, derives a CIBIL-like score, applies policy overrides, and presents a decision. It also stores assessment history, explains predictions with SHAP, and generates a downloadable PDF. The runtime is implemented primarily in app.py; separate nodes represent its meaningful responsibilities. README capabilities and relationships are included where documented, but unsampled internals are not inferred.
Main entry points: app.py Assessment Controller · credit_model.pkl Trained Model · Loan_default.csv Loan Data
Components 15
Applicant Experience
- Streamlit Interface
app.py - Applicant Inputs
app.py
Risk Assessment
- Assessment Controller
app.py - Loan Data
Loan_default.csv - Trained Model
credit_model.pkl - Default Prediction
app.py - Credit Score
app.py - Policy Decision
app.py
Explainability and Reports
- SHAP Analysis
app.py - Risk Visualization
app.py - PDF Report Generation
app.py - Credit Report
Assessment Records
- History Store
app.py - History View
app.py
Other components
- Applicant
Connections 19
- Applicant → Streamlit Interface: enters details
app.py - Streamlit Interface → Applicant Inputs: collects inputs
app.py - Applicant Inputs → Assessment Controller: submits assessment
app.py - Assessment Controller → Loan Data: loads features
app.py - Assessment Controller → Trained Model: loads model
app.py - Assessment Controller → Default Prediction: requests prediction
app.py - Default Prediction → Trained Model: predicts probability
app.py - Assessment Controller → Credit Score: calculates score
app.py - Assessment Controller → Policy Decision: applies policy
app.py - Assessment Controller → History Store: writes assessment
app.py - Assessment Controller → SHAP Analysis: explains prediction
app.py - SHAP Analysis → Loan Data: samples background
app.py - SHAP Analysis → Trained Model: uses model pipeline
app.py - Assessment Controller → Risk Visualization: renders explanation
app.py - Assessment Controller → PDF Report Generation: generates report
app.py - PDF Report Generation → Credit Report: builds PDF
app.py - Assessment Controller → Streamlit Interface: shows results
app.py - Streamlit Interface → History View: displays history
app.py - History View → History Store: reads records
app.py