Representation Learning for Pedestrian Re-identification