Added TeX line breaks to mlx.optimizers.Lion docstring (#595)

Fixes the "misplaced &" MathJax error in documentation.
This commit is contained in:
nathan 2024-01-30 19:37:34 -08:00 committed by GitHub
parent 199aebcf77
commit bad67fec37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -465,8 +465,8 @@ class Lion(Optimizer):
.. math::
c_{t + 1} &= \beta_1 m_t + (1 - \beta_1) g_t
m_{t + 1} &= \beta_2 m_t + (1 - \beta_2) g_t
c_{t + 1} &= \beta_1 m_t + (1 - \beta_1) g_t \\
m_{t + 1} &= \beta_2 m_t + (1 - \beta_2) g_t \\
w_{t + 1} &= w_t - \eta (\text{sign}(c_t) + \lambda w_t)
Args: