Open reshinthadithyan opened 4 years ago
Hey, and thank you for this interesting question. As far as I understand, you want to represent BinOp
as a single node which appears multiple times in your tree? I don't think there is a particular reason to enforce that nodes are shared as long as their feature vectors are the same (like same identifier for this operation). Do I understand you correctly?
If you have any thoughts on how to improve PyG for tree representations, please let me know.
❓ Questions & Help
Is there a sub-branch which specifically deals with Tree related modelling using PyTorch Geometric? There is one problem in using the existing representation in Graphs for Tree. Say In a Graph World,
Rather in a Tree World, same node can be present in two different branches. Say in an AST, the nodes are labelled same but, can be two different entities when occuring in a Tree.
Was wondering, if there's an existing way to solve this using PyTorch Geometric. If not, should we build it since Trees are equally important,common Structured Data.
My thought Can relabelling BinOp into Two labels (BinOp1[1] and BinOp2[0]) and having same feature vectors solve it?