stable_pretraining.callbacks#
The callbacks module provides various monitoring and evaluation tools for self-supervised learning training.
Online Monitoring#
|
Online probe for evaluating learned representations during self-supervised training. |
|
Weighted K-Nearest Neighbors online evaluator using queue discovery. |
|
Writes specified batch data to disk during training and validation. |
|
RankMe (effective rank) monitor using queue discovery. |
|
LiDAR (Linear Discriminant Analysis Rank) monitor using queue discovery. |
Training Utilities#
|
Early stopping mechanism with support for metric milestones and patience. |
Links the trainer to the DataModule for enhanced functionality. |
|
Displays validation metrics in a color-coded formatted table. |
|
Logs detailed module parameter statistics in a formatted table. |
Model Persistence#
Callback for saving and loading sklearn models in PyTorch Lightning checkpoints. |
Evaluation#
|
Image Retrieval evaluator for self-supervised learning. |