How dpr23/eta works
This repository trains a LightGBM delivery-ETA model and provides an interactive Gradio predictor. The runtime flow is user input through the interface to feature assembly and model prediction, then a formatted ETA. Separately, train.py generates synthetic logistics data, trains and evaluates a model, and saves the artifact loaded by the app. The README mentions a POST API, but the shown runtime source defines a Gradio interface; no API handler is evidenced.
Main entry points: app.py ETA predictor · train.py Training pipeline · lgbm_eta_model.pkl Trained model
Components 6
ETA prediction
- Gradio interface
app.py - ETA predictor
app.py - Trained model
lgbm_eta_model.pkl
Model training
- Training pipeline
train.py - Synthetic data
train.py
Other components
- User
Connections 6
- User → Gradio interface: submits inputs
app.py - Gradio interface → ETA predictor: calls
app.py - ETA predictor → Trained model: predicts with
app.py - ETA predictor → Gradio interface: returns ETA
app.py - Training pipeline → Synthetic data: generates
train.py - Training pipeline → Trained model: saves model
train.py