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
论文公式2 #6
Comments
感谢对我们工作的关注! |
感谢您的回复! |
在utils.py文件的handle_data()函数中,我们对原序列进行了反转,这样在与位置向量的计算过程中,第一个位置向量对应着最后一个物品,第二个位置向量对应倒数第二个物品...... |
还有一个问题:论文公式3对会话的的求和在代码中体现了,但是对会话的求平均却没发现? |
感谢指出。在最新的更新中,已经针对这两点进行修改,使得代码和论文中公式一致。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
论文公式2
和代码
alpha = torch.matmul(torch.cat([extra_vector.unsqueeze(2).repeat(1, 1, neighbor_vector.shape[2], 1),
neighbor_vector, neighbor_weight.unsqueeze(-1)], -1), self.w_1).squeeze(-1) 不一致,感觉论文公式有误?
The text was updated successfully, but these errors were encountered: