Liu, Wei, et al. “Constrained Metric Learning Via Distance Gap Maximization”. Proceedings of the AAAI Conference on Artificial Intelligence, vol. 24, no. 1, July 2010, pp. 518-24, doi:10.1609/aaai.v24i1.7701.