Skip to Content
Hands-On Mathematics for Deep Learning
book

Hands-On Mathematics for Deep Learning

by Jay Dawani
June 2020
Intermediate to advanced
364 pages
13h 56m
English
Packt Publishing
Content preview from Hands-On Mathematics for Deep Learning

Siamese neural networks

The Siamese neural network is an architecture that is comprised of two identical neural networks with shared weights, and their parameters are trained to determine the similarity between two data samples using a distance metric on the embeddings. This architecture has proven to be effective for one-shot image classification where the network learns to tell whether or not two images belong to the same class.

In the following diagram, we can see that the network takes in two images and each passes through an identical CNN (fθ) to generate feature vectors (the embeddings):

Once the embeddings are calculated, we can then ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Math for Deep Learning

Math for Deep Learning

Ronald T. Kneusel
Deep Learning with PyTorch

Deep Learning with PyTorch

Eli Stevens, Thomas Viehmann, Luca Pietro Giovanni Antiga

Publisher Resources

ISBN: 9781838647292