| optimizer_adam | R Documentation |
Create an Adam optimizer
optimizer_adam(params, lr = 0.001, beta1 = 0.9, beta2 = 0.999, eps = 1e-08)
params |
Named list of ag_param tensors |
lr |
Learning rate (default 1e-3) |
beta1 |
First moment decay (default 0.9) |
beta2 |
Second moment decay (default 0.999) |
eps |
Stability constant (default 1e-8) |
An optimizer environment
w <- ag_param(matrix(runif(4), 2, 2))
opt <- optimizer_adam(list(w = w), lr = 1e-3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.