Implementation of Triplet Neural Network on keras.
My PyTorch implmentation with online mining is avaliable here
This code is inspired by adambielski's github repository, who implements the Triplet Neural Network on PyTorch, and also this Kaggle example by Guilherme Christmann who uses tensorflow to implement the triplet net.
Tensorflow 1.5
keras 2.2
sklearn 0.19.1
matplotlib 2.2.2
seaborn 0.9
All the required codes are contained inside the jupyter-notebook
Before using the Triplet Neural Network, the raw date distribution looks like this:
After using the Tiplet Neural Network, the dataset forms different clusters according to their classes