hwwang55 / pathcon Goto Github PK
View Code? Open in Web Editor NEWCombining relational context and relational paths for knowledge graph completion
License: MIT License
Combining relational context and relational paths for knowledge graph completion
License: MIT License
When I want to view the complete PathCon model code, I found that there are some missing codes? The following are something puzzle me.
您好!
请问您们是按照什么样的策略将知识图谱的数据集划分成训练集、测试集的?能否告知呢?
请问我要如何保存训练后的头尾实体的向量表示,谢谢!
您好,十分欣赏您及其团队所提出来的PathCon模型。由于我自己实验的需要,关于TransE, DistMult等基于Embedding的baseline方法,有些实现细节需要向您请教:
(当然了,如果您愿意开源baseline的实验细节那是最好不过的了
您好,PathCon这个工作十分的有意义!我很感兴趣!
在复现代码是,我发现代码实现中在model.py的line 106,待预测的关系被加入了edge_list,然后在line 170,当hop=0,i=0时,待预测的关系将会被当作self_vector被聚合,也就是在训练的时候就使用到的待预测的关系信息,但是理论上不应该有这样的信息进入模型训练?请问是这样吗?
specifically for the following two lines of codes?
mask = neighbor_edges - train_edges # [batch_size, -1]
mask = (mask != 0).float()
it is an excellent job of your work ,hope your reply,thanks.
Hi,
I'm trying to reproduce the results presented in the paper using the WN18RR dataset. However, I'm running into some kind of trouble since I'm not able to replicate the results. Using the default parameters, i.e., running only python main.py
the obtained results are, for example:
final results
acc: 1.0000 mrr: 0.4864 mr: 3.9359 h1: 0.3086 h3: 0.5443 h5: 0.7096
What I'm doing wrong?
Also, the other models' differ greatly from everything reported so far, as an example, the RotatE results for the WN18RR dataset reported in the original paper are mmr: 0.440 h1: 36.1 h3: 48.3 h10: 58.1
, while in the PathCon paper are mmr: 0.799 h1: 0.735 h3: 0.823
. How do they were evaluated?
Thanks in advance.
您好,请问可以告知一下 bert.npy文件的生成方式吗?十分感谢。
Hello,sir!
Would you tell me how I can generate the bert.npy files by myself? Thank you very much!!
嗨,您好,想问一下您的FB15k路径文件生成大概需要多久?谢谢!
您好!我在学习贵团队pathCon模型时,发现所有数据集的path_type均为embedding
,请问是因为rnn的处理效果略差的原因吗?
感谢~
Section 4.2 describes an experiment for inductive KG completion which includes sampling a subset of nodes in the test set and removing them from the training set.
How was this implemented in the code? I am looking at data_loader.py, but I cannot seem to find it.
Thank you.
Hi there! Can you help me with the question about using the model in an inductive setting, please?
Let's assume, we want to get the model scores for a pair of vertices not presented in training set. According to the code, we need to use calculated relational paths which rely only on the training set. It means that for new vertices there will be no paths connecting them with vertices in the training set. What should we do in such a case?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.