osl_dynamics.inference.schedules#

Values that change with the epoch during training.

Each function returns the value to use in a given epoch (counting from 0).

Functions#

learning_rate(epoch, initial_learning_rate, decay[, start])

Exponentially decaying learning rate.

ema_decay(epoch, delay, forget, n_epochs)

Decay of the exponential moving average update of a Markov chain.

kl_annealing_factor(epoch, curve, sharpness, n_epochs)

Factor the KL loss is multiplied by.

gumbel_temperature(epoch, *, curve, ...)

Temperature of a Gumbel-Softmax distribution.