Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rank function for ComparER_sub and fix getting wrong uid in BPR negative sampling for ComparER_sub and MTER #515

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

lthoang
Copy link
Member

@lthoang lthoang commented Jun 26, 2023

Description

  1. Adding rank function that incorporates top aspect score as described in the paper.

  2. Fixing minor issue of getting wrong user id in BPR negative sampling.
    user_ids[i_idx] may not be identical to u_idx [WRONG].
    user_ids[i_idx] should be user_ids[idx], which is identical as u_idx [CORRECT].

Related Issues

Checklist:

  • I have added tests.
  • I have updated the documentation accordingly.
  • I have updated README.md (if you are adding a new model).
  • I have updated examples/README.md (if you are adding a new example).
  • I have updated datasets/README.md (if you are adding a new dataset).

@lthoang lthoang changed the title Fixed changing sign if item j > item i, refactor code Fixed minor issue in optimizing BPR objective of MTER and ComparER_sub Jun 26, 2023
@tqtg
Copy link
Member

tqtg commented Jun 26, 2023

LGTM. Please feel free to merge

@lthoang lthoang changed the title Fixed minor issue in optimizing BPR objective of MTER and ComparER_sub Fixed minor issue in optimizing BPR objective and add rank function for ComparER_sub Jun 27, 2023
@lthoang lthoang changed the title Fixed minor issue in optimizing BPR objective and add rank function for ComparER_sub Add rank function for ComparER_sub and fix BPR negative sampling for ComparER_sub and MTER Jun 27, 2023
@lthoang lthoang changed the title Add rank function for ComparER_sub and fix BPR negative sampling for ComparER_sub and MTER Add rank function for ComparER_sub and fix getting wrong uid in BPR negative sampling for ComparER_sub and MTER Jun 28, 2023
@lthoang lthoang merged commit 95619ca into PreferredAI:master Jun 28, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants