Learn R Programming

darch (version 0.10.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