Class ActivityRegularization
Layer that applies an update to the cost function based input activity.
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 ActivityRegularization : BaseLayer, IDisposable
Constructors
| Improve this Doc View SourceActivityRegularization(Single, Single, Shape)
Initializes a new instance of the ActivityRegularization class.
Declaration
public ActivityRegularization(float l1 = 0F, float l2 = 0F, Shape input_shape = null)
Parameters
Type | Name | Description |
---|---|---|
System.Single | l1 | L1 regularization factor (positive float). |
System.Single | l2 | L2 regularization factor (positive float). |
Shape | input_shape | Arbitrary. Use the keyword argument input_shape (tuple of integers, does not include the samples axis) when using this layer as the first layer in a model. |
Implements
System.IDisposable