Replies: 1 comment 1 reply
-
Iterating through the
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello,
After having created my dataset on top of inorganic chemical compositions I have a
dataset
object which returns atuple
made by a feature matrix (just some one-hot-encoding of elements in this case) for a given composition and a target value.dataset.__getitem__(0)
Now, to feed these data through a
GCN
model, at least in my understanding, I have to convert the current dataset in a new version that these (already implemented) models can read. So I'm simply doingdata_list = [Data(x=train, y=target) for train,target in dataset]
and finally creating a
DataLoader
object simply doing:data_loader = DataLoader(data_list, batch_size=1)
The problem is that when I try to iterate over data_loader,
I get the following error:
Beta Was this translation helpful? Give feedback.
All reactions