Browse code

only update_losses once for each point

Jorn Hoofwijk authored on 27/04/2018 19:14:54
Showing 1 changed files
... ...
@@ -270,8 +270,6 @@ class Learner1D(BaseLearner):
270 270
 
271 271
         # Update the losses
272 272
         self.update_losses(x, real)
273
-        if real:
274
-            self.update_losses(x)
275 273
 
276 274
         # If the scale has increased enough, recompute all losses.
277 275
         if self._scale[1] > self._oldscale[1] * 2: