Distance metric learning for pattern recognition. (March 2018)