Training and Making Predictions with Siamese Networks and Triplet Loss