Description Usage Arguments Details See Also

The function trains a restricted Boltzmann machine (`RBM`

) with
the contrastive divergence method.

1 2 |

`rbm` |
A instance of the class |

`trainData` |
The data matrix for the training |

`numEpochs` |
The number of training iterations |

`numCD` |
Number of contrastive divergence iterations |

`shuffleTrainData` |
Whether to shuffle the training data prior to each epoch. |

`...` |
Additional parameters for the unit functions |

This function is build on the basis of the code from G. Hinton et. al. (http://www.cs.toronto.edu/~hinton/MatlabForSciencePaper.html - last visit 2016-04-30) for the pre training of deep belief nets. The original code is located in the files 'rbm.m' and 'rbmhidlinear.m'. It iterates in every epoche over the batches and calculates the updates for the weights. If it is the first CD iteration or the CD iterations are finished, the hidden units are calculated with the real value activations of the visible units, otherwise with the binary activations. To tell the unit functions the actual state of the training, the function generates a array with the following running parameters and passes them to the units: Number of epochs: "numEpochs", current epochs: "currentEpoch", Number of batches: "numBatches", current batch: "currentBatch", Maximal CD iterations: "numCD", current CD iteration: "currentCD", CD is finished: "finishCD".

darch documentation built on May 29, 2017, 8:14 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.