Class MoCoConfig
- Namespace
- AiDotNet.SelfSupervisedLearning
- Assembly
- AiDotNet.dll
MoCo-specific configuration settings.
public class MoCoConfig
- Inheritance
-
MoCoConfig
- Inherited Members
Remarks
For Beginners: MoCo (Momentum Contrast) uses a memory queue and momentum encoder to provide consistent negative samples without large batch sizes.
Properties
Momentum
Gets or sets the momentum coefficient for the momentum encoder.
public double? Momentum { get; set; }
Property Value
Remarks
Default: 0.999
Higher momentum = slower updates = more stable negatives.
QueueSize
Gets or sets the size of the memory queue.
public int? QueueSize { get; set; }
Property Value
- int?
Remarks
Default: 65536
Larger queues provide more negative samples.
UseMLPProjector
Gets or sets whether to use MLP projection head (MoCo v2+).
public bool? UseMLPProjector { get; set; }
Property Value
- bool?
Remarks
Default: true
Methods
GetConfiguration()
Gets the configuration as a dictionary.
public IDictionary<string, object> GetConfiguration()