Display averaged loss over the last several iterations

Might be more useful in practice than the original per-instance losses (for plotting, for instance).