How kumaravi005/credit_risk_assessment works
CreditIQ is a browser-based underwriting dashboard backed by a FastAPI credit-risk prediction service. Underwriters enter applicant and loan details; the UI calculates the loan-to-income ratio and submits the fields, the API validates them, scores them with the calibrated model, applies the loaded decision threshold, and returns a probability and risk verdict for display. The README documents model training and calibration as a separate capability; its notebook is present, but its implementation was not sampled. Edges cite the README or sampled caller source where the relationship is visible.
Main entry points: script.js Risk form workflow · main.py FastAPI service · Credit_Risk.ipynb Training and calibration · index.html Dashboard interface
Components 12
Underwriting dashboard
- Dashboard interface
static/index.html - Live DTI meter
static/script.js - Risk form workflow
static/script.js - Verdict display
static/script.js
Prediction service
- FastAPI service
main.py - Loan validation schema
main.py - Risk scoring
main.py
Risk modeling
- Calibrated model
credit_risk_model.pkl - Decision threshold
best_threshold.pkl - Training and calibration
Credit_Risk.ipynb - Credit dataset
credit_risk_dataset.csv
Other components
- Loan underwriter
Connections 13
- Loan underwriter → Dashboard interface: enters applicant data
README.md - Dashboard interface → Risk form workflow: provides form
README.md - Risk form workflow → Live DTI meter: updates live ratio
static/script.js - Risk form workflow → FastAPI service: posts applicant JSON
static/script.js - FastAPI service → Loan validation schema: validates input
README.md - FastAPI service → Risk scoring: scores application
main.py - Risk scoring → Calibrated model: loads and predicts
main.py - Risk scoring → Decision threshold: loads threshold
main.py - FastAPI service → Risk form workflow: returns JSON
README.md - Risk form workflow → Verdict display: renders verdict
static/script.js - Credit dataset → Training and calibration: trains from
- Training and calibration → Calibrated model: produces model
- Training and calibration → Decision threshold: selects threshold
README.md