1.
Use the current weights and order information to calculate estimated delivery durations for the batch.
2.
Work backward through the network to compute the loss gradients for the current weights.
3.
Compare the estimated durations with the recorded durations to calculate the batch loss.
4.
Adjust the weights using the gradients and the chosen update size.