Table of Contents

Class BarlowTwinsConfig

Namespace
AiDotNet.SelfSupervisedLearning
Assembly
AiDotNet.dll

Barlow Twins-specific configuration settings.

public class BarlowTwinsConfig
Inheritance
BarlowTwinsConfig
Inherited Members

Remarks

For Beginners: Barlow Twins learns by making the cross-correlation matrix between embeddings of two views close to the identity matrix (reducing redundancy).

Properties

Lambda

Gets or sets the lambda parameter for redundancy reduction.

public double? Lambda { get; set; }

Property Value

double?

Remarks

Default: 0.0051

Controls the weight of the off-diagonal terms in the loss.

ProjectionDimension

Gets or sets the projection dimension.

public int? ProjectionDimension { get; set; }

Property Value

int?

Remarks

Default: 8192

Barlow Twins uses much larger projection dimensions than other methods.

Methods

GetConfiguration()

Gets the configuration as a dictionary.

public IDictionary<string, object> GetConfiguration()

Returns

IDictionary<string, object>