dropoutMask: Produce a dropout mask

Description Usage Arguments

Description

Produces a binary matrix, with each element independently sampled as 1 or 0 with probabilty 0.5. Code is based on the "josh" function from https://gist.github.com/sckott/3639688

Usage

1
dropoutMask(n.row, n.col, prob = 0.5)

Arguments

n.row

the number of rows desired

n.col

the number of columns desired

prob

the probability that an element of the matrix is one rather than zero


davharris/mistnet documentation built on May 14, 2019, 9:28 p.m.