Learn R Programming

deeplearning (version 0.1.0)

applyDropoutMask: Applies the given dropout mask to the given data row-wise.

Description

This function multiplies each row with the dropout mask. To apply the dropout mask by row, it can simply be multiplied with the data matrix. This does not work of the mask is to be applied row-wise, hence this function.

Usage

applyDropoutMask(data, mask)

Arguments

data
Data to which the dropout mask should be applied
mask
The dropout mask, a vector of 0 and 1.

Value

Data with applied dropout mask

References

Dropout: A Simple Way to Prevent Neural Networks from Overfitting, Nitish Srivastava

See Also

https://www.cs.toronto.edu/~hinton/absps/JMLRdropout.pdf