Transformation learning and its effect on similarity