transE
transE copied to clipboard
update函数中梯度更新问题
根据原文中loss function的推导,我认为应该为如下形式
headEntityVector = headEntityVector + 2 * self.learingRate * (relationVectorBeforeBatch- tailEntityVectorBeforeBatch) tailEntityVector = tailEntityVector + 2 * self.learingRate * (headEntityVectorBeforeBatch - relationVectorBeforeBatch)
WithCorrupted的形式类似,求解答。
我倒是认为headEntityVector是可以放大loss,加快权重更新