Browse code

don't change scale change factor

Jorn Hoofwijk authored on 27/04/2018 19:14:34
Showing 1 changed files
... ...
@@ -274,7 +274,7 @@ class Learner1D(BaseLearner):
274 274
             self.update_losses(x)
275 275
 
276 276
         # If the scale has increased enough, recompute all losses.
277
-        if self._scale[1] > self._oldscale[1] * 1.25:
277
+        if self._scale[1] > self._oldscale[1] * 2:
278 278
             self.losses = {xs: self.loss_per_interval(xs, self._scale, self.data)
279 279
                            for xs in self.losses}
280 280