<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def on_epoch_end(self, last_metrics, **kwargs):
        "Put the various losses in the recorder."
        return add_metrics(last_metrics, [s.smooth for k,s in self.smootheners.items()])