Table of Contents

Class SSLTrainingHistory<T>

Namespace
AiDotNet.SelfSupervisedLearning
Assembly
AiDotNet.dll

Training history from SSL pretraining.

public class SSLTrainingHistory<T>

Type Parameters

T

The numeric type used for computations.

Inheritance
SSLTrainingHistory<T>
Inherited Members

Properties

CustomMetrics

Custom metrics per epoch.

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

Property Value

Dictionary<string, List<T>>

KNNHistory

k-NN accuracy per epoch (if computed).

public List<double> KNNHistory { get; set; }

Property Value

List<double>

LearningRateHistory

Learning rate per epoch.

public List<double> LearningRateHistory { get; set; }

Property Value

List<double>

LossHistory

Loss values per epoch.

public List<T> LossHistory { get; set; }

Property Value

List<T>

MomentumHistory

Momentum value per epoch (for methods with momentum encoder).

public List<double> MomentumHistory { get; set; }

Property Value

List<double>

StdHistory

Representation standard deviation per epoch (for collapse detection).

public List<T> StdHistory { get; set; }

Property Value

List<T>

Methods

AddCustomMetric(string, T)

Adds a custom metric value.

public void AddCustomMetric(string name, T value)

Parameters

name string
value T

AddEpochMetrics(T, T, double, double, double)

Adds metrics from a training step.

public void AddEpochMetrics(T loss, T std, double knnAcc, double lr, double momentum)

Parameters

loss T
std T
knnAcc double
lr double
momentum double