Keraflow
Deep Learning for Python.
|
Applies Dropout to the input. More...
Public Member Functions | |
def | __init__ |
Applies Dropout to the input.
In training phase, for each unit in the input tensor, Dropout sets it to 0 with probability drop_rate
and sets it to 1/(1-drop_rate
) times with probability 1-drop_rate
. In testing phase, Dropout simply returns the input tensor.
(nb_samples, ...)
(nb_samples, ...)
def keraflow.layers.core.Dropout.__init__ | ( | self, | |
drop_rate, | |||
kwargs | |||
) |
drop_rate | float between 0 and 1. Fraction of the input units to drop. |
kwargs | see Layer.__init__. |