Used the layer sizes from the DArch object to create the RBM objects for the pre-training.
generateRBMs(darch, layers, genWeightFunc = generateWeights)# S4 method for DArch
generateRBMs(darch, layers, genWeightFunc = generateWeights)
A instance of the class DArch
.
An array with the sizes of the layers
The function for generating the weight matrices
The DArch object with the generated RBMs