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.
applyDropoutMask(data, mask)
Data to which the dropout mask should be applied
The dropout mask, a vector of 0 and 1.
Data with applied dropout mask