Show / Hide Table of Contents

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.

Inheritance
System.Object
Keras
Base
BaseLayer
AlphaDropout
Implements
System.IDisposable
Inherited Members
BaseLayer.Set(BaseLayer[])
Base.Parameters
Base.None
Base.Init()
Base.ToPython()
Base.InvokeStaticMethod(Object, String, Dictionary<String, Object>)
Base.InvokeMethod(String, Dictionary<String, Object>)
Base.Item[String]
Keras.Instance
Keras.keras
Keras.keras2onnx
Keras.tfjs
Keras.Dispose()
Keras.ToTuple(Array)
Keras.ToList(Array)
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 Source

AlphaDropout(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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX