splitfn: Split function. As gradient and cost both calculated in...

Description Usage Arguments

View source: R/functions.R

Description

Split function. As gradient and cost both calculated in backProp function we want to cache values as optim will call the functions seperately (for fn and gr). This closure splits the function, and will check if x (the par argument of optim) changes between calls. Will retrieve cached values if not (i.e will calculate cost and gradient for for fn, and retrieve cached values for gr)

Usage

1

Arguments

f

the function to be split


philipmgoddard/nnePtR documentation built on May 25, 2019, 5:04 a.m.