layer_prepost_process: Apply a sequence of functions to the input or output of a...

Description Usage Details

View source: R/model.R

Description

The sequence is specified as a string which may contain the following characters: a: add previous_value n: apply normalization d: apply dropout z: zero add

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
layer_prepost_process(
  resid,
  x,
  sequence = NULL,
  dropout = 0,
  norm_type = "layer",
  depth = tail(shape_list2(x), 1),
  eps = 1e-09,
  name = NULL
)

Details

For example, if sequence=="dna", then the output is previous_value + normalize(dropout(x))


ifrit98/transformR documentation built on Nov. 26, 2019, 2:14 a.m.