gradientDescent: Gradient descent on weights

Description Usage Arguments See Also

Description

Gradient descent on weights

Usage

1
gradientDescent(wts_init, grad, loss, maxit = 100, epsilon = 0.01)

Arguments

loss

function that takes a weight vector as an input and returns a single value

maxit

maximum number of iterations

epsilon

stop when change in loss output is less than epsilon 10 iterations in a row.

initial

weight values

gradient

function that takes weight vector as an input are returns a gradient vector of the same length

step

step size

See Also

gradientDescent, getGradientFunction, doChainRule


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.