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

关于model中graph的属性 #1

Open
JerryWangJun opened this issue Jan 16, 2024 · 2 comments
Open

关于model中graph的属性 #1

JerryWangJun opened this issue Jan 16, 2024 · 2 comments

Comments

@JerryWangJun
Copy link

JerryWangJun commented Jan 16, 2024

想请教一下model中的data_p.edge_attr和data_p.ptr分别表示什么?似乎在generate graph时生成的图中没有这两个属性,需要如何得到它们呢?

@zxx24
Copy link

zxx24 commented Apr 29, 2024

作者似乎是通过数据增强获得的edge_attr属性,ptr是用pyg 取batch时自动生成的用于区分图的属性。

@lazycg
Copy link
Collaborator

lazycg commented Apr 29, 2024

想请教一下model中的data_p.edge_attr和data_p.ptr分别表示什么?似乎在generate graph时生成的图中没有这两个属性,需要如何得到它们呢?

edge_attr是边的权值,这里是将节点的3D相对距离作为边权值,通过数据增强2获得。ptr是pytorch_geometric取batch图数据时用来区分图的属性

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