jax_sgmc.scheduler.cyclic_temperature
- jax_sgmc.scheduler.cyclic_temperature(beta=1.0, k=1)[source]
Cyclic switch of the temperature between 0.0 and 1.0.
Switches temperature form 0.0 (SGD) to 1.0 (SGLD) when ratio of initial step size and current step size drops below beta. This scheduler is intended to be used with the cyclic step size scheduler.
- Parameters:
- Return type:
- Returns:
Returns a triplet as described above