Calculates the neuron output with the hyperbolic tangent function from
input in data
.
tanhUnitRbm(rbm, data, biases, weights, runParams,
matMult = getParameter(".matMult", ...), ...)
A matrix with the data for the calculations.
The biases for the calculations.
The weight matrix for the calculations.
Parameters which indicates the status of the training.
Matrix multiplication function.
Additional parameters, used for parameter resolution.
The real value and binary (-1,1) activations for the units.
The return value is a list with the output of the hyperbolic
tangent function as first entry and binary (-1,1) representation calculated
through a comparison ofthe output with random numbers. The random numbers a
generated with the function runif
.
Other RBM unit functions: linearUnitRbm
,
sigmoidUnitRbm