LAMB's direction is Adam's normalized moment ratio, plus decoupled weight decay on the weights. It is the quantity whose norm the trust ratio compares against the weights.
Implement lamb_direction(m_hat, v_hat, w, wd, eps), the Adam direction with decay.
Divide the first moment by the square root of the second plus eps, then add wd times the weights.
No results yet
Run your code to check it against the examples, or submit to run every test.