Learn R Programming

darch (version 0.9.1)

addLayer: Adds a layer to the DArch object

Description

Adds a layer to the given DArch object. The parameter weights and biases will be put together in one matrix.

Usage

addLayer(darch, weights, biases, unitFunction)

## S3 method for class 'DArch': addLayer(darch, weights, biases, unitFunction)

Arguments

darch
An instance of the class DArch.
weights
The weights for the layer.
biases
The biases for the layer.
unitFunction
The functions of the units in the layer.

See Also

DArch, sigmoidUnit, binSigmoidUnit, sigmoidUnitDerivative, linearUnit, linearUnitDerivative, softmaxUnit, softmaxUnitDerivative,