I've added caching of the loss and use it to diplay the loss in the live_info widget.
live_info
Calculating the loss could be an "expensive" calculation and in this way, no time is wasted.