Learn R Programming

darch (version 0.9.1)

preTrainDArch: Pre trains a DArch network

Description

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

Usage

preTrainDArch(darch,trainData,maxEpoch=1,numCD=1,...)

## S3 method for class 'DArch': preTrainDArch(darch, trainData, maxEpoch = 1, numCD = 1, ...)

Arguments

darch
A instance of the class DArch.
trainData
The data matrix for the training
maxEpoch
The number of epochs
numCD
The number of CD iterations
...
Additional parameters for the function trainRBM

Details

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

See Also

DArch, RBM, trainRBM