matrixInLayer: Matrix closure for neural network layers

Description Usage Arguments Value Examples

View source: R/simpleNN.R

Description

matrixInLayer getter and setter functions for a matrix

Usage

1
matrixInLayer(init = FALSE, rS, cS, initPos = FALSE, initScale = 100)

Arguments

init

boolean for whether we need to initialize values.

rS

number of rows.

cS

number of columns.

initPos

boolean to indicate whether values need to be initialized as positive.

initScale

scalar to truncate initialized values closer to zero.

Value

environment with the functions setter and getter

Examples

1
testFun <- matrixInLayer(TRUE,10,10,TRUE,10)

gumeo/mnistr documentation built on May 17, 2019, 9:27 a.m.