Class BaseRegularizer
Regularizers allow to apply penalties on layer parameters or layer activity during optimization. These penalties are incorporated in the loss function that the network optimizes.
The penalties are applied on a per-layer basis.The exact API will depend on the layer, but the layers Dense, Conv1D, Conv2D and Conv3D have a unified API.
Namespace: SiaNet.Regularizers
Assembly: SiaNet.dll
Syntax
public abstract class BaseRegularizer
Constructors
| Improve this Doc View SourceBaseRegularizer(Single, Single)
Initializes a new instance of the BaseRegularizer class.
Declaration
public BaseRegularizer(float l1 = 0.01F, float l2 = 0.01F)
Parameters
Type | Name | Description |
---|---|---|
System.Single | l1 | The l1 value. Default to 0.01 |
System.Single | l2 | The l2 value. Default to 0.01 |
Properties
| Improve this Doc View SourceName
Gets or sets the name of the regularizer function
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |