Cyclic

class olympus.optimizers.schedules.cyclic.CyclicLR(optimizer, base_lr, max_lr, step_size_up, step_size_down, mode, base_momentum, max_momentum)[source]

Bases: olympus.optimizers.schedules.base.LRScheduleAdapter

Methods

get_last_lr() Return last computed learning rate by current scheduler.
load_state_dict(state_dict) Loads the schedulers state.
print_lr(is_verbose, group, lr[, epoch]) Display the current learning rate.
state_dict() Returns the state of the scheduler as a dict.
defaults  
epoch  
get_lr  
get_space  
step  
static defaults()[source]
epoch(epoch=None, metrics=None)[source]
static get_space()[source]
load_state_dict(state_dict)[source]

Loads the schedulers state.

Args:
state_dict (dict): scheduler state. Should be an object returned
from a call to state_dict().
state_dict()[source]

Returns the state of the scheduler as a dict.

It contains an entry for every variable in self.__dict__ which is not the optimizer.

step(step=None, metrics=None)[source]