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

Description Usage Arguments Value References See Also

View source: R/dropout.R

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

1

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


rz1988/deeplearning documentation built on May 28, 2019, 10:46 a.m.