- Package
delivery/- Entry points
- 4 scripts
- Tests
tests/, 38 cases- Download
- Source, .zip (88 KB)
Files
| File | Role | Lines |
|---|---|---|
| delivery/data.py | Download, filter and split the TLC trips | 216 |
| delivery/instances.py | Seeded generator for orders, windows and vans | 140 |
| delivery/nn.py | Multi-layer perceptron, Adam, Huber loss, early stopping | 239 |
| delivery/baselines.py | Historical average and distance-linear baselines | 63 |
| delivery/travel_time.py | Hourly time matrices, FIFO interpolation, lower bounds | 66 |
| delivery/search.py | UCS, Greedy, A* and brute force | 271 |
| delivery/csp.py | Assignment CSP: backtracking, forward checking, AC-3 | 247 |
| delivery/integration.py | The feedback loop and the no-solution report | 183 |
| delivery/eval.py | Metrics and the replay of held-out trips | 93 |
| delivery/pipeline.py | End-to-end helpers | 27 |
| delivery/plots.py | Figures | 107 |
| delivery/config.py | Seeds, paths, constants | 31 |
| tests/test_search.py | Search tests | 145 |
| tests/test_csp.py | CSP tests | 97 |
| tests/test_integration.py | Integration tests | 71 |
| tests/test_nn_data.py | Model and data tests | 68 |
| tests/conftest.py | Shared fixtures | 34 |
| make_data.py | Entry point: data | 78 |
| train_nn.py | Entry point: training | 79 |
| run_demo.py | Entry point: demo | 364 |
| run_experiments.py | Entry point: experiments | 230 |
| requirements.txt | Pinned requirements | 19 |
Every file opens in the viewer with line numbers.