Skip to content

Commit

Permalink
Merge pull request #1222 from dpoteryayev:patch-1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 734170565
  • Loading branch information
OptaxDev committed Mar 6, 2025
2 parents 9138512 + 1a3b3a2 commit 2e66ce8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions optax/schedules/_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,8 @@ def cosine_decay_schedule(
.. math::
\begin{cases}
\frac{I (1 - \alpha)}{2}(1+\cos(\pi\,\frac{t}{T})^p) + I \alpha\,
& \text{if } t \leq T \\
I \alpha, & \text{if } t > T
\alpha I + (1 - \alpha) I \left[ \frac{1}{2} \left( 1+ \cos \left( \pi\,\frac{t}{T} \right) \right) \right] ^p & \text{, if } t \leq T \\
\alpha I & \text{, if } t > T
\end{cases}
where :math:`T` is the number of decay steps (``decay_steps``), :math:`p` is
Expand Down

0 comments on commit 2e66ce8

Please sign in to comment.