Learn R Programming

darch (version 0.10.0)

saveDArch: Saves a DArch network

Description

Saves the DArch object to the filename given through the parameter name plus the ending ".net".

Usage

saveDArch(darch,name="darch",saveRBM=TRUE)

# S4 method for DArch saveDArch(darch, name = "darch", saveRBM = TRUE)

Arguments

darch

A instance of the class DArch.

name

The name for the file. Default value is "darch".

saveRBM

Boolean value to indicate if the RBM is saved.

Details

If the field ff of the DArch object is TRUE then the weights are saved in separate ff-files named by the parameter name plus the string "-W" and the number of the layer. In the same way the weights from the RBMs of the DArch are saved, but only if the parameter saveRBM is TRUE. For more information about the how the weights and biases from the RBMs are saved see saveRBMFFWeights. If the parameter saveRBM is FALSE the field rbmList of the DArch object is overwritten by an empty list.

See Also

loadDArch, saveRBMFFWeights