def do(self, which_callback, *args):
        self.iter += 1
        if self.iter > self.decay_first:
            ratio = 1.0 * (self.decay_last - self.iter)
            ratio = np.maximum(0, ratio / (self.decay_first - self.decay_last))
            self.lr.set_value(np.float32(ratio * self.lr_init))
        logger.info("Iter %d, lr %f" % (self.iter, self.lr.get_value()))
dataset/ETHPy150Open CuriousAI/ladder/nn.py/LRDecay.do/swapped operands of `-`