Class AlphaDropout
Applies Alpha Dropout to the input. Alpha Dropout is a Dropout that keeps mean and variance of inputs to their original values, in order to ensure the self-normalizing property even after this dropout. Alpha Dropout fits well to Scaled Exponential Linear Units by randomly setting activations to the negative saturation value.
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Layers
Assembly: Keras.dll
Syntax
public class AlphaDropout : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceAlphaDropout(Single, NDarray<Int32>, Nullable<Int32>)
Initializes a new instance of the AlphaDropout class.
Declaration
public AlphaDropout(float rate, NDarray<int> noise_shape = null, int? seed = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Single | rate | float, drop probability (as with Dropout). The multiplicative noise will have standard deviation sqrt(rate / (1 - rate)). |
Numpy.NDarray<System.Int32> | noise_shape | A 1-D Tensor of type int32, representing the shape for randomly generated keep/drop flags. |
System.Nullable<System.Int32> | seed | A Python integer to use as random seed. |
Implements
System.IDisposable