Online and batch learning of pseudo-metrics | Synapse