def current_momentum(self):
        """Returns the momentum currently desired by the schedule."""
        w = self.saturate - self.start

        if w == 0:
            # saturate=start, so just jump straight to final momentum
            if self._count >= self.start:
                return self.final_momentum
            return self._init_momentum

        alpha = float(self._count - self.start) / float(w)
        if alpha < 0.:
            alpha = 0.
        if alpha > 1.:
            alpha = 1.
        return self._init_momentum * (alpha - 1) + alpha * self.final_momentum
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/training_algorithms/learning_rule.py/MomentumAdjustor.current_momentum/swapped operands of `-`