BUPT-GAMMA / OpenHGNN

This is an open-source toolkit for Heterogeneous Graph Neural Network(OpenHGNN) based on DGL.
Apache License 2.0
828 stars 141 forks source link

Why is the embedding of meta paths different for different nodes in acm4GTN? #171

Closed wwddd66 closed 1 year ago

wwddd66 commented 1 year ago

❓ Questions and Help

Hi, I found that there are different meta-path embeddings for nodes of different types when I run HGSL model for node classification task in acm4GTN. Normally, it should have one type meta-path embedding for one type meta-path. So could you tell me "Why is the embedding of meta paths different for different nodes in acm4GTN?"

wwddd66 commented 1 year ago

In details, hg.nodes["paper"].data, hg.nodes["author"].data and hg.nodes["subject"].data all have embeddings of type "pspap_m2v_emb", "psp_m2v_emb" and "pap_m2v_emb". I think there should be only one corresponding embedding for a type of meta path, according to the generation results of the metapath2vec model.