Code Monkey home page Code Monkey logo

cenet's Introduction

Reacubeth's github stats

cenet's People

Contributors

xyjigsaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cenet's Issues

Oracle

您好,请问这个Oracle Training 就是单独的指第二阶段的对比训练吗?这个最后要表达的是什么呢

why set some values to lambda or -lambda

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_targer中s_history_label_true的疑问,以及cenet_model.py中对history_tag的疑问

你好,请问一下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,此行就不会起作用,有时间的话解决一下疑问,谢谢。

Part of the code is missing...

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.

the experiment performance

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!

Can you explain how you obtain filtered version and its reason? I don't understand the following code.

        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

It seems that it not impossible to handle the datasate "GDELT"!!!!!!!!

屏幕截图 2023-05-04 193841
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!

Parameter set

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?

环境配置

你好!请问这个项目对环境配置有要求吗?需要几张显卡呢?

Validation set

Excellent work!
I have some questions about the code. The validation set is not used, right?

CENET/main.py

Line 213 in 68a564a

if args.valid_epochs % epoch == 0 and args.dataset != 'ICEWS14T' and False:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.