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

求教,TransH和TransR的梯度以及L1、L2距离的问题 #22

Closed
zhangyi85 opened this issue Jun 27, 2017 · 2 comments
Closed

求教,TransH和TransR的梯度以及L1、L2距离的问题 #22

zhangyi85 opened this issue Jun 27, 2017 · 2 comments

Comments

@zhangyi85
Copy link

zhangyi85 commented Jun 27, 2017

1 关于L1和L2的选取问题
Trans系列算法中,对距离的选取对最后的结果有影响么?看了您github上分享的代码,感觉主要是侧重于用L1距离。

2 梯度下降算法中的偏导数取值的问题
参考了您github上的代码,transE的梯度求取没有问题,但是transH和transR算法的梯度求解值,我不是太明白。
具体的细节,我给您发邮件了。
非常感谢!

@majingbit
Copy link

同问,TransH的梯度公式能给个推导过程吗

@Mrlyk423
Copy link
Member

  1. 我尝试的效果是L1距离在Freebase的数据集上效果比L2距离好不少
  2. transH和transR就是简单用链式法则求导即可。

@Mrlyk423 Mrlyk423 closed this as completed Nov 2, 2017
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

3 participants