Dropout
class Dropout(keepProbability: Float, seed: Long, name: String) : Layer, NoGradients
Content copied to clipboard
Applies Dropout to the input.
Dropout consists in randomly setting a fraction rate
of input units to 0 at each update during training time, which helps prevent overfitting. The units that are kept are scaled by 1 / (1 - rate)
, so that their sum is unchanged at training time and inference time.
NOTE: Import and export for this layer is not supported yet. NOTE: This layer used for inference purposes only.
Constructors
Functions
buildFromInboundLayers
Link copied to clipboard
Extend this function to define variables in layer.
computeOutputShape
Link copied to clipboard
Computes output shape, based on inputShape and Layer type.
computeOutputShapeFromInboundLayers
Link copied to clipboard
Computes output shape, based on input shapes of inbound layers.
forward
Link copied to clipboard
Properties
hasActivation
Link copied to clipboard
inboundLayers
Link copied to clipboard
isTrainable
Link copied to clipboard
outboundLayers
Link copied to clipboard
outputShape
Link copied to clipboard
paramCount
Link copied to clipboard
parentModel
Link copied to clipboard