Preference learning and similarity learning perspectives on personalized recommendation