FactorScheduler

class FactorScheduler(step, factor=1, stop_factor_lr=1e-08, base_lr=0.01, warmup_steps=0, warmup_begin_lr=0, warmup_mode='linear')

Reduce the learning rate by a factor for every n steps.

It returns a new learning rate by:

base_lr * pow(factor, floor(num_update/step))
Parameters:
step : int

Changes the learning rate for every n updates.

factor : float, optional

The factor to change the learning rate.

stop_factor_lr : float, optional

Stop updating the learning rate if it is less than this value.