-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to use ComplEx pretrain MetaQA_half? #109
Comments
I read the issue #41. Do you use command = 'python3 main.py --dataset MetaQA_half --num_iterations 500 --batch_size 256 ' to train the model? Do you only use train.txt in MetaQA_half to train ComplEx? |
Here is the accuracy I get using main.py in train_embedding on MetaQA_half. Hits @10: 0.173125 The accuracy is very low. Is there a problem? |
yes this is very low. let me try and get back to you |
did you try with batch norm? |
According to the code, when using "--do_batch_norm 0", do_batch_norm = False. So, I guess I didn't do batch norm. |
what I meant was, did you try running with "do_batch_norm 1" ? |
Yes, I use "do_batch_norm 1" to run the code. The hits@1 is about 0.07. |
I ran this
These embeddings should be ok-ish I think for downstream application. You will have to uncomment following line (and pls check code to see file location) to save the trained files. EmbedKGQA/train_embeddings/main.py Line 249 in b2a3367
|
May I know how you pre-train MetaQA data?
Do you use the code in directory "train_embeddings" to learn the embedding? If so, can you share the command of running the main.py with me?
If not, how do you generate the bn0.npy, bn1.npy, bn2.npy, E.npy, R.npy?
The text was updated successfully, but these errors were encountered: