a tutorial on distance metric learning : mathematical foundations , algorithms and software .
Metric learning for large scale image classification: generalizing to new classes at near-zero cost