
Adam update, theta-first signature (Geron Ch 11, morie.fn gradmo)
Source:R/geron_ml_native.R
morie_geron_adam_update.RdSame kernel as morie_geron_adam(); this mirrors gradmo's argument
order and its POSITIVE step convention (theta_new = theta - step).
Examples
morie_geron_adam_update(1, 0.1, 0, 0, t = 1, eta = 0.001)
#> $theta_new
#> [1] 0.999
#>
#> $m_new
#> [1] 0.01
#>
#> $s_new
#> [1] 1e-05
#>
#> $m_hat
#> [1] 0.1
#>
#> $s_hat
#> [1] 0.01
#>
#> $step
#> [1] 0.0009999999
#>
#> $t
#> [1] 1
#>
#> $estimate
#> [1] 0.0009999999
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "Adam optimizer step with bias correction"
#>