Exploiting Preferences in Loss Functions for Sequential Recommendation via Weak Transitivity