How rajesh-giduthuri/customer-churn-prediction works
This is a FastAPI customer-churn prediction app. A browser or API client submits customer attributes; FastAPI validates them against the Customer schema, the app passes the resulting feature row to the loaded classifier, and the client receives a churn prediction. The app also serves a browser page. The README lists feature-importance analysis, but the sampled runtime code does not show that behavior; its relationship to the notebook is therefore unverified. Evidence is limited to the README and sampled source excerpts.
Main entry points: app.py FastAPI app · classifier.pkl Churn classifier · index.html Customer form page · Customer.py Customer schema
Components 6
Web interface
- FastAPI app
app.py - Customer form page
templates/index.html
Prediction
- Customer schema
Customer.py
Model and analysis
- Churn classifier
classifier.pkl - Feature importance
customer_churn.ipynb
Other components
- Browser / API client
Connections 7
- Browser / API client → FastAPI app: requests page
app.py - FastAPI app → Customer form page: serves page
app.py - Browser / API client → FastAPI app: submits attributes
README.md - FastAPI app → Customer schema: validates with
app.py - FastAPI app → Churn classifier: loads and predicts
app.py - FastAPI app → Browser / API client: returns prediction
app.py - Churn classifier → Feature importance: analyzed by