#function [updates, state] = Adam(gradients, state)
GD<-function(gradients,state){
if(length(state)==0){
state$epsilon = 1e-8;
}
updates = state$epsilon*gradients
state$epsilon = 1e-8;
return(list(updates=updates,state=state))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.