How mohith292005/e-commerce-retention-ltv-ml-pipeline-visualizer works
This is a Streamlit customer-retention dashboard backed by a synthetic-data ML pipeline. Users choose a test customer or enter features, trigger an inference run, and review segment, churn, LTV, and retention recommendations alongside visualizations and model metrics. The graph separates dataset generation and model preparation from the dashboard’s customer-level inference and presentation. Relationships among the documented training stages follow the README workflow; unsampled training implementation details are not expanded.
Main entry points: pipeline.py Preprocessing · app.py Customer inference · synthetic_customers.csv Customer dataset · pipeline_models.joblib Trained model bundle
Components 13
Customer data
- Synthetic generator
data_generator.py - Customer dataset
data/synthetic_customers.csv
ML pipeline
- Preprocessing
pipeline.py - Customer segmentation
pipeline.py - Churn prediction
pipeline.py - LTV prediction
pipeline.py - Retention decisions
pipeline.py - Trained model bundle
models/pipeline_models.joblib
Dashboard
- Customer selection
app.py - Customer inference
app.py - Charts and metrics
app.py - Pipeline progress feed
app.py
Other components
- Dashboard user
Connections 15
- Dashboard user → Customer selection: selects customer
README.md - Synthetic generator → Customer dataset: writes data
data_generator.py - Customer dataset → Preprocessing: provides training data
README.md - Preprocessing → Customer segmentation: feeds features
README.md - Preprocessing → Churn prediction: feeds features
README.md - Preprocessing → LTV prediction: feeds features
README.md - Customer segmentation → Retention decisions: provides segment
README.md - Churn prediction → Retention decisions: provides risk
README.md - LTV prediction → Charts and metrics: provides estimate
README.md - Retention decisions → Charts and metrics: provides action
README.md - Preprocessing → Trained model bundle: saves fitted models
pipeline.py - Customer selection → Customer inference: submits features
app.py - Customer inference → Charts and metrics: renders results
README.md - Customer inference → Pipeline progress feed: updates progress
app.py - Trained model bundle → Customer inference: supplies fitted models
app.py