hiddenBlock: hiddenBlock

Description Usage Arguments Value See Also

View source: R/resautomodel.R

Description

This function is to construct the hidden block .

Usage

1
2
hiddenBlock(inlayer, nodes, acts, idepth, orginlayer = NULL,
  reg = NULL, dropout = 0, batchnorm = TRUE)

Arguments

inlayer

input layer, keras layer

nodes

list of integers, list of the number of nodes for all the hidden layers

acts

list of strings, list of activations for hidden layers

idepth

integer, index of the hidden layer

orginlayer

keras layer, original layer to be added to decoding layer (default: NULL)

reg

string, regularization (default: NULL)

dropout

double, dropout rate for the target hidden layer (default 0)

batchnorm

bool, flag to conduct batch normalization (default: TRUE)

Value

keras layer, block of a hidden layer (with addtion of actionvation or/and batch normalization)

See Also

AutoEncoderModel for major function using this function.


downscaledl documentation built on Oct. 30, 2019, 11:35 a.m.