How bozya/saccopred works
This repository predicts financial distress in SACCOs through a Streamlit web app and a command-line pipeline. Users provide a panel dataset or generate synthetic data, train and compare Logistic Regression, Random Forest, XGBoost, and optionally an LSTM, then inspect diagnostics or score an individual SACCO. The README documents file-based outputs and data exploration. The excerpts show the web app’s calls into the predictor, but omit much of the core pipeline, so internal CLI and reporting links rely on README statements rather than inspected implementation details.
Main entry points: sacco_predictor.py CLI pipeline · app.py Web model training
Components 17
User interfaces
- Streamlit app
app.py - CLI pipeline
sacco_predictor.py
Data preparation
- Dataset input
app.py - Synthetic data
sacco_predictor.py - Feature preparation
sacco_predictor.py - Sequence preparation
sacco_predictor.py
Modeling
- Tabular models
sacco_predictor.py - LSTM model
sacco_predictor.py - Web model training
app.py
Prediction and analysis
- Model evaluation
sacco_predictor.py - Model comparison
app.py - SACCO scoring
app.py - Data explorer
app.py - Model diagnostics
sacco_predictor.py - Result files
Other components
- Web user
- CLI user
Connections 21
- Web user → Streamlit app: uses
README.md - CLI user → CLI pipeline: runs
README.md - Streamlit app → Dataset input: loads
app.py - Streamlit app → Synthetic data: generates
app.py - Streamlit app → Web model training: starts
app.py - Web model training → Feature preparation: prepares features
app.py - Web model training → Tabular models: trains
README.md - Web model training → Sequence preparation: builds sequences
app.py - Web model training → LSTM model: trains optionally
app.py - Web model training → Model evaluation: collects metrics
app.py - Web model training → Model comparison: builds comparison
app.py - Streamlit app → SACCO scoring: scores SACCO
README.md - Streamlit app → Data explorer: explores data
README.md - CLI pipeline → Synthetic data: generates optionally
README.md - CLI pipeline → Dataset input: loads optionally
README.md - CLI pipeline → Feature preparation: prepares data
README.md - CLI pipeline → Tabular models: trains
README.md - CLI pipeline → LSTM model: trains optionally
README.md - CLI pipeline → Model evaluation: evaluates models
README.md - CLI pipeline → Model diagnostics: produces
README.md - CLI pipeline → Result files: writes
README.md