generateDropoutMask: Dropout mask generator function.
Description
This function generates droput masks as a vector of given length, according
to the given dropout rate.
Usage
generateDropoutMask(length, dropoutRate)
Arguments
length
length of the dropout mask
dropoutRate
The dropout rate (i.e. percentage of zeros in the mask)
Value
Matrix containing the dropout mask