Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
muhaochen committed Oct 1, 2017
1 parent a1bd4cd commit 46d6685
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/TransE/TransE.py
Expand Up @@ -95,7 +95,6 @@ def gradient_decent(self,index_e1,index_r,index_e2,const_decay=1.0, L1=False):
self.vec_e[index_e2] -= diff
self.vec_e[index_e1] /= LA.norm(self.vec_e[index_e1])
self.vec_e[index_e2] /= LA.norm(self.vec_e[index_e2])
#self.vec_r[index_r] /= LA.norm(self.vec_r[index_r])
# return the current L-2 norm of h + r - t
return LA.norm(self.vec_e[index_e1] + self.vec_r[index_r] - self.vec_e[index_e2])

Expand Down

0 comments on commit 46d6685

Please sign in to comment.