backProp: backProp

Description Usage Arguments

View source: R/backward-propogate.R

Description

Performs a forward propogation with current values of Thetas, then performs a backward propogation to calculate gradient needed for optimisation. The usage is to take advantage of the closure to store templates of matrices, the penalty term, and the outcome. The function then only needs to be passed the unrolled parameters as it is called iteratively for optimisation.

Usage

1
backProp(Thetas, a, lambda, outcome)

Arguments

Thetas

template list of matrices allocated to correct size

a

template list of activation matrices (with "zeroth" layer filled in with inputs)

lambda

penalty term

outcome

matrix of 'dummied' outcomes


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