Skip to content

Commit

Permalink
Fix some small bug in TransH.
Browse files Browse the repository at this point in the history
  • Loading branch information
lyk423 authored and lyk423 committed Aug 15, 2015
1 parent 954e6e4 commit 160ae3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified PTransE/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions TransH/Train_TransH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ class Train{
relation_tmp[rel][ii]-=belta*rate*x;
entity_tmp[e1][ii]-=belta*rate*x;
entity_tmp[e2][ii]+=belta*rate*x;
A[rel][ii]+=belta*rate*x*tmp1;
A[rel][ii]-=belta*rate*x*tmp2;
A_tmp[rel][ii]+=belta*rate*x*tmp1;
A_tmp[rel][ii]-=belta*rate*x*tmp2;
}
for (int ii=0; ii<n; ii++)
{
Expand Down

0 comments on commit 160ae3a

Please sign in to comment.