Relevant Component Analysis for Supervised Distance Metric