How offbyone-dev/smart-loan-risk-analyzer works
Smart Loan Risk Analyzer is a Streamlit dashboard for assessing loan-approval risk. Applicants enter demographic and financial details, submit them for a model prediction, and see a risk label, probability, recommendation, and visual explanations. A separate training script reads the loan dataset, fits a Random Forest, and saves the model artifact used by the application. The README also documents feature importance, confusion matrix, and ROC visualizations. The prediction and preprocessing modules are indexed but empty in the supplied excerpts, so no behavior is attributed to them.
Main entry points: streamlit_app.py Streamlit dashboard · train_model.py Model training · loan_model.pkl Trained model · loan_data.csv Loan dataset
Components 8
Risk dashboard
- Streamlit dashboard
app/streamlit_app.py - Applicant inputs
app/streamlit_app.py - Risk result
app/streamlit_app.py - Model visualizations
app/streamlit_app.py
Model inference
- Trained model
models/loan_model.pkl
Model training
- Model training
src/train_model.py - Loan dataset
data/loan_data.csv
Other components
- Applicant
Connections 7
- Applicant → Streamlit dashboard: uses
README.md - Streamlit dashboard → Applicant inputs: presents
app/streamlit_app.py - Streamlit dashboard → Trained model: predicts with
README.md - Streamlit dashboard → Risk result: shows
app/streamlit_app.py - Streamlit dashboard → Model visualizations: renders
app/streamlit_app.py - Model training → Loan dataset: reads
src/train_model.py - Model training → Trained model: saves
src/train_model.py