powered by
Creates a stochastic gradient descent with momentum optimiser.
sgdwm.opt(pars)
list of reference object of class 'number' representing the parameters to optmise.
a reference object of class 'sgdwm.opt'
# NOT RUN { modello.init(10, 10, 10, 10) mdl = module.lm$new(1, 3, 1) optimizer = sgdwm.opt(mdl$pars()) is.opt(optimizer) # TRUE modello.close() # }
Run the code above in your browser using DataLab