Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 629 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 629 Bytes

Contrastive learning

2D embeddings of the MNIST test dataset

This repo contains an example of contrastive representation learning. An embedding can be trained in such a way that similar samples (sharing the same label) are pulled together, while dissimilar ones (with different labels) are pushed apart.

Installation

pip install -e .

Training

python scripts/main.py fit --config config/mnist.yaml

Notebooks