Table of Contents

Enum GradientClippingMethod

Namespace
AiDotNet.Models.Options
Assembly
AiDotNet.dll

Specifies the method used for gradient clipping.

public enum GradientClippingMethod

Fields

ByNorm = 0

Clips gradients by scaling the entire gradient vector if its L2 norm exceeds a threshold. This preserves the gradient direction and is generally the preferred method.

ByValue = 1

Clips each gradient element independently to a fixed range. Simpler but may change the gradient direction.