Attribute Space Metric Learning