-
Hi!
But I think that I am doing this incorrectly, because if I try to split my data, I get a weird error. Here is what I do:
Which gives me an error. I do not need to do anything special with the dataset, I'm just trying to use it as an input to my model, which requires torch geometric datasets. I'd appreciate any help, though this might be a silly question. I am very new to this :) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Note that train_data_list = [Data(x=x[i], y=y[i]) for i range(feat.size(0))]
loader = DataLoader(train_data_list, batch_size=..., ...) |
Beta Was this translation helpful? Give feedback.
Note that
DataLoader
expects a list ofdata
objects: