This function is to construct the hidden block .
hiddenBlock(inlayer, nodes, acts, idepth, orginlayer = NULL,
reg = NULL, dropout = 0, batchnorm = TRUE)
input layer, keras layer
list of integers, list of the number of nodes for all the hidden layers
list of strings, list of activations for hidden layers
integer, index of the hidden layer
keras layer, original layer to be added to decoding layer (default: NULL)
string, regularization (default: NULL)
double, dropout rate for the target hidden layer (default 0)
bool, flag to conduct batch normalization (default: TRUE)
keras layer, block of a hidden layer (with addtion of actionvation or/and batch normalization)
AutoEncoderModel
for major function using this function.