How mohammeddkhaled/employee-turnover works
This repository is an employee-attrition prediction application: a Flask interface accepts employee attributes and returns an attrition prediction. It also includes a separate model-training script and documents exploratory data analysis. The excerpts show the training and prediction code, but do not establish how the two Flask applications are deployed or whether they share a model artifact; those connections are left out.
Main entry points: application.py Web interface · model.py Logistic regression · app.py Prediction API · upload.html Employee form
Components 7
Prediction interfaces
- Web interface
application.py - Prediction API
app.py - Employee form
templates/upload.html - Prediction result
templates/result.html
Attrition modeling
- Logistic regression
model.py
Exploratory analysis
- Data analysis
Attrition.ipynb
Other components
- HR user
Connections 5
- HR user → Web interface: submits data
- Web interface → Employee form: renders
- Web interface → Prediction result: renders
application.py - HR user → Prediction API: sends attributes
README.md - Logistic regression → Data analysis: analyzes data
README.md