Skip to content
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

IterE使用的一些问题 #46

Closed
19savage opened this issue May 8, 2024 · 5 comments
Closed

IterE使用的一些问题 #46

19savage opened this issue May 8, 2024 · 5 comments

Comments

@19savage
Copy link

19savage commented May 8, 2024

在使用IterE.py做新数据集的操作时,按照IterE_FB.sh方法进行脚本编写,在初始训练时并没有在axiom_pool中进行赋值,都是空文件,这直接导致了运行时报错:
image
想请问一下这里的axiom_pool在针对新数据集时应该如何进行初始化操作

@hzwy3c
Copy link
Collaborator

hzwy3c commented May 13, 2024

您好!

感谢您对我们工作的支持,关于初始化axiom_pool,您可以参考以下GitHub项目中的代码:GitHub - IterE/axiomPools.py。关于详细的实现细节和方法,您可以查阅这篇论文:Iteratively Learning Embeddings and Rules for Knowledge Graph Reasoning

希望这些资源对您有所帮助!

@19savage
Copy link
Author

19savage commented May 13, 2024 via email

@wencolani
Copy link
Contributor

您好,

我看不到评论中所提到的“图”。论文中所提到的仓库多出来的inferenceChain1, inferenceChain2, inferenceChain3,是考虑了路径中关系的方向而差异化出来的inferenceChain,比如 a --[r1] --> b --[r2]--> c 和 a <--[r3]-- b --[r2] --> c 是符合不同模式的inferenceChain。

希望解答了你的疑惑!

@19savage
Copy link
Author

感谢你的解答,针对4种不同的inferenceChain 我在IterE的具体实现中找到了定义区分。原文是通过更改AxiomPool.py中inferenceChain分支进行生成的嘛,想请教一下改写的代码用于学习

@wencolani
Copy link
Contributor

对的,在inferenceChain中增加其他几种非h --> e --> t顺序的路径的采样,就可以生成了对应的inferenceChain1, inferenceChain2, inferenceChain3了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants