Skip to content

Commit

Permalink
Merge pull request #1900 from zhengbw0324/master
Browse files Browse the repository at this point in the history
FIX: fix the note in LightGCN
  • Loading branch information
zhengbw0324 authored Oct 31, 2023
2 parents 4caa9be + dcec484 commit 27ea565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recbole/model/general_recommender/lightgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def calculate_loss(self, interaction):
neg_scores = torch.mul(u_embeddings, neg_embeddings).sum(dim=1)
mf_loss = self.mf_loss(pos_scores, neg_scores)

# calculate BPR Loss
# calculate regularization Loss
u_ego_embeddings = self.user_embedding(user)
pos_ego_embeddings = self.item_embedding(pos_item)
neg_ego_embeddings = self.item_embedding(neg_item)
Expand Down

0 comments on commit 27ea565

Please sign in to comment.