Learn R Programming

darch (version 0.10.0)

preTrainDArch: Pre-trains a '>DArch network

Description

This function pre-trains a '>DArch network with the contrastive divergence method

Usage

preTrainDArch(darch, dataSet, numEpochs = 1, numCD = 1, ...,
  trainOutputLayer = F)

Arguments

darch

A instance of the class '>DArch.

dataSet

'>DataSet to be used for training.

numEpochs

The number of epochs

numCD

The number of CD iterations

...

Additional parameters for the function trainRBM

trainOutputLayer

Logical indicating whether to train the output layer RBM.

Value

Trained '>DArch instance

Details

The function runs for every '>RBM in the attribute rbmList the training function trainRBM copies after the training the weights and biases into the corresponding layer of the '>DArch network.

See Also

'>DArch, '>RBM, trainRBM