Compositional metric learning for multi-label classification