Learn R Programming

modello (version 0.1.1)

sgdwm.opt: Create SGDWM optmiser

Description

Creates a stochastic gradient descent with momentum optimiser.

Usage

sgdwm.opt(pars)

Arguments

pars

list of reference object of class 'number' representing the parameters to optmise.

Value

a reference object of class 'sgdwm.opt'

Examples

Run this code
# 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