| ag_dropout | R Documentation |
In training mode applies inverted dropout (random Bernoulli mask, scale by
1/(1-rate) to preserve expected values). In eval mode is identity.
ag_dropout(rate)
rate |
Drop probability in [0, 1) |
An ag_dropout environment
drop <- ag_dropout(0.5)
x <- ag_tensor(matrix(runif(8), 4, 2))
out <- drop$forward(x) # training mode by default
ag_eval(drop)
out2 <- drop$forward(x) # identity
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.