xyjigsaw / cenet Goto Github PK
View Code? Open in Web Editor NEWTemporal Knowledge Graph Reasoning with Historical Contrastive Learning
License: MIT License
Temporal Knowledge Graph Reasoning with Historical Contrastive Learning
License: MIT License
Hello, a wonderful job. I want to ask that the hyperparameters settings are the same for all datasets or not.
您好,请问这个Oracle Training 就是单独的指第二阶段的对比训练吗?这个最后要表达的是什么呢
同学您好,由于计算指标的方式不同,请问CENET论文中汇报的RE-GCN结果是如何得到的呢?非常感谢您的帮助
May I know the purpose of the following code in model.forward()?
s_history_tag[s_history_tag != 0] = self.args.lambdax
o_history_tag[o_history_tag != 0] = self.args.lambdax
s_non_history_tag[s_history_tag == 1] = -self.args.lambdax
s_non_history_tag[s_history_tag == 0] = self.args.lambdax
o_non_history_tag[o_history_tag == 1] = -self.args.lambdax
o_non_history_tag[o_history_tag == 0] = self.args.lambdax
s_history_tag[s_history_tag == 0] = -self.args.lambdax
o_history_tag[o_history_tag == 0] = -self.args.lambdax
您好,请问代码中Oracle这个单词的命名指代的是对比模块的意思吗还是?谢谢解答
你好,请问一下get_history_graph.py的get_history_target方法中,对于s_history_label_true的处理是只要过去有相同(subject,?,object)的集合就能设置为true,为什么这么设置呢?根据论文描述应该是还要约束relation的信息,但这段代码不要求relation相同。
此外,cenet_model.py中关于λ的处理:
s_history_tag[s_history_tag != 0] = self.args.lambdax
o_history_tag[o_history_tag != 0] = self.args.lambdax
s_non_history_tag[s_history_tag == 1] = -self.args.lambdax
s_non_history_tag[s_history_tag == 0] = self.args.lambdax
o_non_history_tag[o_history_tag == 1] = -self.args.lambdax
o_non_history_tag[o_history_tag == 0] = self.args.lambdax
s_history_tag[s_history_tag == 0] = -self.args.lambdax
o_history_tag[o_history_tag == 0] = -self.args.lambdax
第三行中为什么约束s_history_tag==1呢?以上已经把s_history_tag中不等0的部分全部设置为λ了,那么如果λ不等于1,此行就不会起作用,有时间的话解决一下疑问,谢谢。
Firstly, congrats your paper has been accepted in AAAI 2023, and appreciate your elegant work on the task of knowledge graph reasoning!
I'm trying to reproduce your result according to your repo, but I found some key files are missing, e.g., main.py.
It would be greatly appreciated if you could provide the full code.
hi! it's a wonderful job in this mission, but i want to ask some question about your code performance. as your instructions, i use the hyper parameter noticed in the md, but i cannot get the same performance as your paper says. the all test hits@ is a bit lower than the paper performance, like 0.8%. could you give me your seed or some example of hyperparameter setting, or maybe it's some performance fluctuation? it really bothers me. thank your project! i like your idea!
o_label = cur_o
ground = preds[i, cur_o].clone().item()
if self.args.filtering:
if pred_known == 's':
s_id = torch.nonzero(all_triples[:, 0] == cur_s).view(-1)
idx = torch.nonzero(all_triples[s_id, 1] == cur_r).view(-1)
idx = s_id[idx]
idx = all_triples[idx, 2]
else:
s_id = torch.nonzero(all_triples[:, 2] == cur_s).view(-1)
idx = torch.nonzero(all_triples[s_id, 1] == cur_r).view(-1)
idx = s_id[idx]
idx = all_triples[idx, 0]
preds[i, idx] = 0
preds[i, o_label] = ground
I am running your code but meeting the above problem for dataset "GDELT" when I try to load the frequency matrix which is a novelty in your paper.
Can you tell me how to handle loading the frequency data for dataset "GDELT", because it needs 99GB to load it? I wonder how you can handle this dataset in your paper.
Thanks!
Hello! Based on the previous answer, I still have discrepancies between the experimental results on five datasets and the results mentioned in the paper. Could you please give me the parameter settings used for conducting experiments on these five datasets?
你好!请问这个项目对环境配置有要求吗?需要几张显卡呢?
Excellent work!
I have some questions about the code. The validation set is not used, right?
Line 213 in 68a564a
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.