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
1 | dropoutMask(n.row, n.col, prob = 0.5)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.