-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the bug in TransR, which makes the script crash when hidden_sizeE…
… != hidden_sizeR
- Loading branch information
韩旭
committed
May 29, 2017
1 parent
85dcfb3
commit 151cc24
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
151cc24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Thank you for sharing your work. I am a student and just started touching python and TensorFlow. I have download your program, but I have some problems. when i run TransR.py , should i adjust some parameters? and where i can take the result? I am a tiro and do not understand the source code very well, so not hesitate to enlighten me.
151cc24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run the program directly with the default parameters. If you want to change the parameters, you can change them as follows:
self.hidden_sizeE //the dimension of entity embeddings
self.hidden_sizeR //the dimension of relation embeddings
self.nbatches // the times for each round to traverse the whole dataset
self.margin //You can know more about the margin from the paper
self.L1_flag //True means the score functions will be calculated under l1 distance, False means be calculated under l2 distance.