Show / Hide Table of Contents

Class ActivityRegularization

Layer that applies an update to the cost function based input activity.

Inheritance
System.Object
Keras
Base
BaseLayer
ActivityRegularization
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 ActivityRegularization : BaseLayer, IDisposable

Constructors

| Improve this Doc View Source

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