To improve effectiveness of the training process we use batch hard negative mining [1]} strategy to construct informative triplets. Each triplet is build using the hardest negative example found within a batch. The hardest negative example is a structurally dissimilar element that has the closest embedding, computed using current network weights, to the anchor.
