Replies: 1 comment
-
As far as I understand, you want to represent each feature as a node, such that you have N graphs, each with F nodes that are fully-connected. Is that correct? I don't think a GNN makes sense here, and the same task is better achieved by a simple MLP (which already aggregates from all F nodes by default). Edit: You can construct the fully-connected def __init__(self, ...)
self.edge_index = ...
def get(self, index):
return Data(x=self.darray[index], edge_index=self.edge_index) |
Beta Was this translation helpful? Give feedback.
0 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.
-
I have a tabular data with shape N*F, N denotes the training sample number and F denotes the features number. I want to construct complete graph (F nodes) for each training sample. Now I have two ways to do this:
First, construct all graphs in advance and then use Dataloader to generate batch graphs:
Second, construct graphs when loading batches:
When N is huge, the first method is out-of-memory while the second method is very slow (If I do not generate the Data object and utilize the (X,y) purely, it will cost 30 minutes/epoch. If I generate the Data object, it will cost 50 minutes/epoch).
Is there are any memory/computation friendly way for handling batches of complete graphs?
Beta Was this translation helpful? Give feedback.
All reactions