def __init__(self, step, factor=1, stop_factor_lr=1e-08, name='FactorScheduler', **kwargs):
    super(FactorScheduler, self).__init__(name=name, **kwargs)
    if (step < 1):
        raise ValueError('Schedule step must be greater or equal than 1 round')
    if (factor > 1.0):
        raise ValueError('Factor must be no more than 1 to make lr reduce')
    self.step = step
    self.factor = factor
    self.stop_factor_lr = stop_factor_lr
def __init__(self, step, factor=1, stop_factor_lr=1e-08, name='FactorScheduler', **kwargs):
    super(FactorScheduler, self).__init__(name=name, **kwargs)
    if (step < 1):
        raise ValueError('Schedule step must be greater or equal than 1 round')
    if (factor > 1.0):
        raise ValueError('Factor must be no more than 1 to make lr reduce')
    self.step = step
    self.factor = factor
    self.stop_factor_lr = stop_factor_lr