How to deal with two-dimensional node feature when using GAT #8668
Unanswered
william2ai
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Sorry, can you clarify the issue for me? Is your node feature matrix three-dimensional? Can't you simply reshape that to a two-dimensional feature matrix? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I‘m using GAT to do an EEG regression task. My node is (47,18,18), 47 is the node number and 18*18 represents the node feature. I'm a beginner to GNN and all I know for now is GNN can handle one-dimensional node feature for sure.
My 18 * 18 matrix is a positive definite symmetric matrix, so I want to map it to a hyperbolic space through exp(). Some people also suggest that I can first remove the triangle or convert it into one-dimensional through MLP, as it would be better if I could directly process the two-dimensional node feature data. By the way, I'm using a hyperbolic GAT.
Looking forward for your kind help.
The code is as follows:
class HGATConv(MessagePassing):
def init(self,
manifold,
in_channels,
out_channels,
heads=1,
concat=True,
negative_slope=0.2,
dropout=0,
bias=True,
act=None,
atten=True,
dist=True):
super(HGATConv, self).init('add')
Beta Was this translation helpful? Give feedback.
All reactions