Show / Hide Table of Contents

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.

Inheritance
System.Object
BaseRegularizer
L1L2
Namespace: SiaNet.Regularizers
Assembly: SiaNet.dll
Syntax
public abstract class BaseRegularizer

Constructors

| Improve this Doc View Source

BaseRegularizer(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 Source

Name

Gets or sets the name of the regularizer function

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX