-
Notifications
You must be signed in to change notification settings - Fork 68
dropout_regularizer #3
Copy link
Copy link
Open
Description
In the paper, entropy of a Bernoulli random variable is
H(p) := -p * log(p) - (1-p) * log(1-p)
But in the code, dropout_regularizer was computed by
dropout_regularizer = self.p * K.log(self.p)
dropout_regularizer += (1. - self.p) * K.log(1. - self.p)
dropout_regularizer *= self.dropout_regularizer * input_dim
Could you please explain the meaning of the dropout_regularizer *= self.dropout_regularizer * input_dim. I cannot find related equation of this code in your paper.
Thanks for your kind help in advance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels