ML Katas

Implement a Siamese Network

hard (>1 hr) pytorch siamese cnn metric learning
this month by E

Implement a Siamese network for MNIST digit similarity:

  • Two identical CNNs sharing weights.
  • Contrastive loss function.
  • Train on pairs of digits (same/different).

Evaluate on test pairs.