MCPcopy
hub / github.com/tensorlayer/TensorLayer / tutorial_mnist_siamese.py

File tutorial_mnist_siamese.py

examples/basic_tutorials/tutorial_mnist_siamese.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1'''Trains a Siamese MLP on pairs of digits from the MNIST dataset.
2Get 96.7% accuracy on test data after 20 epochs training.
3
4For more details, see the reference paper.

Callers

nothing calls this directly

Calls 8

create_pairsFunction · 0.85
contrastive_lossFunction · 0.85
compute_accuracyFunction · 0.85
evalMethod · 0.80
get_siamese_networkFunction · 0.70
train_stepFunction · 0.70
modelFunction · 0.50
trainMethod · 0.45

Tested by

no test coverage detected