osl_dynamics.models.base.KLAnnealingConfig#

class osl_dynamics.models.base.KLAnnealingConfig#

Settings for KL annealing.

Parameters:
kl_annealingbool, optional

Should we anneal the KL loss? The KL loss is multiplied by a factor that increases from 0 to 1 over the annealing epochs.

kl_annealing_curvestr, optional

Shape of the annealing curve. Either 'linear' or 'tanh'.

kl_annealing_sharpnessfloat, optional

Sharpness of the annealing curve if kl_annealing_curve='tanh'.

n_kl_annealing_epochsint, optional

Number of epochs for KL annealing.