Class TruncatedNormal
Initializer that generates a truncated normal distribution. These values are similar to values from a RandomNormal except that values more than two standard deviations from the mean are discarded and redrawn.This is the recommended initializer for neural network weights and filters.
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.Initializer
Assembly: Keras.dll
Syntax
public class TruncatedNormal : Base, IDisposable
Constructors
| Improve this Doc View SourceTruncatedNormal(Single, Single, Nullable<Int32>)
Initializes a new instance of the TruncatedNormal class.
Declaration
public TruncatedNormal(float mean = 0F, float stddev = 0.05F, int? seed = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Single | mean | float. Mean of the random values to generate. |
System.Single | stddev | float. Standard deviation of the random values to generate.. |
System.Nullable<System.Int32> | seed | The seed number for random generator |
Implements
System.IDisposable