SelfSupervisedLearningResult<T>
Models & Types · AiDotNet.SelfSupervisedLearning
Result from SSL pretraining containing the trained encoder and metrics.
For Beginners
After SSL pretraining, this result object contains everything you need: the trained encoder, training history, and evaluation metrics. You can use the encoder for downstream tasks or continue training.
Constructors
| Constructor | Summary |
|---|---|
SelfSupervisedLearningResult() |
Properties
| Property | Summary |
|---|---|
INeuralNetwork<T> Encoder { get; set; } |
Gets or sets the pretrained encoder network. |
LinearEvalResult<T> LinearEvaluation { get; set; } |
Gets or sets the linear evaluation result (if performed). |
SelfSupervisedLearningConfig<T> Config { get; set; } |
Gets or sets the training configuration used. |
SelfSupervisedLearningMetricReport<T> FinalMetrics { get; set; } |
Gets or sets the final SSL metrics. |
SelfSupervisedLearningTrainingHistory<T> History { get; set; } |
Gets or sets the training history. |
T BestValidationMetric { get; set; } |
Gets the best validation metric achieved during training. |
bool IsSuccess { get; set; } |
Gets or sets whether training was successful. |
double TrainingTimeSeconds { get; set; } |
Gets or sets the total training time in seconds. |
double? KNNAccuracy { get; set; } |
Gets or sets the k-NN evaluation accuracy (if performed). |
int BestEpoch { get; set; } |
Gets the epoch at which the best validation metric was achieved. |
int EpochsTrained { get; set; } |
Gets or sets the number of epochs trained. |
string CheckpointPath { get; set; } |
Gets or sets the path to saved checkpoint (if saved). |
string ErrorMessage { get; set; } |
Gets or sets any error message if training failed. |
string MethodName { get; set; } |
Gets or sets the name of the SSL method that was used for training. |
Methods
| Method | Summary |
|---|---|
SelfSupervisedLearningResult<T> Failure(string errorMessage) |
Creates a failed SSL result. |
SelfSupervisedLearningResult<T> Success(INeuralNetwork<T> encoder, string methodName, SelfSupervisedLearningConfig<T> config, SelfSupervisedLearningTrainingHistory<T> history) |
Creates a successful SSL result. |