Table of Contents

Class SSLStepResult<T>

Namespace
AiDotNet.SelfSupervisedLearning
Assembly
AiDotNet.dll

Result of a single SSL training step.

public class SSLStepResult<T>

Type Parameters

T

The numeric type used for computations.

Inheritance
SSLStepResult<T>
Inherited Members

Remarks

For Beginners: This contains all the information from one training iteration, including the loss value and any additional metrics specific to the SSL method.

Properties

CurrentLearningRate

Gets or sets the current learning rate (if adaptive).

public double? CurrentLearningRate { get; set; }

Property Value

double?

CurrentTemperature

Gets or sets the current temperature parameter (if applicable).

public double? CurrentTemperature { get; set; }

Property Value

double?

Loss

Gets or sets the primary loss value for this step.

public T Loss { get; set; }

Property Value

T

Metrics

Gets or sets additional metrics specific to the SSL method.

public Dictionary<string, T> Metrics { get; set; }

Property Value

Dictionary<string, T>

Remarks

Examples: accuracy of positive pair detection, embedding norm, collapse metrics.

NumNegativePairs

Gets or sets the number of negative pairs in this batch.

public int NumNegativePairs { get; set; }

Property Value

int

NumPositivePairs

Gets or sets the number of positive pairs in this batch.

public int NumPositivePairs { get; set; }

Property Value

int