Learn R Programming

modello (version 0.1.1)

sgd.opt: Create SGD optimiser

Description

Creates an stochastic gradient descent optimiser.

Usage

sgd.opt(pars)

Arguments

pars

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

Value

a reference object of class 'sgd.opt'

Examples

Run this code
# NOT RUN {
modello.init(10, 10, 10, 10)
mdl = module.lm$new(1, 3, 1)
optimizer = sgd.opt(mdl$pars())
is.opt(optimizer) # TRUE
modello.close()
# }

Run the code above in your browser using DataLab