How darikkoo/food-delivery-ml works
This repository is a food-delivery ETA prediction product: a React form sends order and delivery details to a Django prediction endpoint, which loads a serialized model and returns predicted minutes for display. The repository also contains a dataset and a broader set of analysis, feature-engineering, training, tuning, and evaluation scripts. The graph shows the training steps visible in excerpts; the other ML scripts are included as distinct capabilities, but their internal relationships are not inferred. The README documents the prediction goal and Gradient Boosting model, not the full training workflow.
Main entry points: views.py Prediction endpoint · App.jsx ETA form · food_delivery_orders_dataset.csv Orders dataset · urls.py API route
Components 20
Prediction interface
- ETA form
frontend/src/App.jsx
Prediction service
- Prediction endpoint
backend/predictor/views.py - API route
backend/predictor/urls.py - Serialized model
models/delivery_time_model.pkl
ML development
- Feature engineering
src/feature_engineering.py - Engineered training
src/train_engineered.py - Model training
src/train.py - Training variants
src/train_no_estimated.py - Cross-validation
src/cross_validation.py - Validation variant
src/cross_validation_no_estimated.py - Model tuning
src/tune_model.py - Model comparison
src/model_comparison.py - Feature importance
src/feature_importance.py - Error analysis
src/error_analysis.py - Exploratory analysis
src/eda.py - Analysis
src/analysis.py - Prediction script
src/predict.py - ML API script
src/api.py
Prediction data
- Orders dataset
data/food_delivery_orders_dataset.csv
Other components
- Order user
Connections 7
- Order user → ETA form: enters details
frontend/src/App.jsx - ETA form → Prediction endpoint: posts JSON
frontend/src/App.jsx - Prediction endpoint → Serialized model: loads model
backend/predictor/views.py - API route → Prediction endpoint: routes request
backend/predictor/urls.py - Prediction endpoint → ETA form: returns minutes
frontend/src/App.jsx - Orders dataset → Feature engineering: reads orders
src/feature_engineering.py - Orders dataset → Engineered training: loads orders
src/train_engineered.py