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

why would you update item_embeddings with the linear transformation of o. #29

Open
zhaohaun opened this issue Jun 22, 2022 · 1 comment

Comments

@zhaohaun
Copy link

`self.transform_matrix = nn.Linear(self.dim, self.dim, bias=False)

item_embeddings = self._update_item_embedding(item_embeddings, o)

item_embeddings = self.transform_matrix(item_embeddings + o)
`
As the codes above show, vector o can be seen as the 1-order response of user u’s click history Vu with respect to the candidate item. Item_embeddings can be seen as the candidate item embeddings.

I have a question, why would you update item_embeddings with the linear transformation of o.

To be honest, I drop this code and the precision decreased dramatically, the highest precision is close to 50% on Movielens. So what's the purpose of this linear transformation.

PS, I didn't find any theory in the paper to explain this code. Please tell me why.

@zhoupengfeigjqh
Copy link

+1

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

No branches or pull requests

2 participants