Replies: 2 comments
-
Take a look at this here, ensure that you keep to the structure. The one thing I see missing the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I was able to resolve my difficulty using the referenced methods. |
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.
-
Hello experts!
I am trying to use k-fold cross validation for a custom dataset I created, similar to this post:
#3663
The solution in the post references the code here:
https://github.com/pyg-team/pytorch_geometric/blob/master/benchmark/kernel/train_eval.py
And the specific code snippet that is the heart of the solution is this:
But when I run this code on a custom InMemoryDataset, I get an error:
AttributeError: 'NoneType' object has no attribute 'y'
So I need to implement a setter/getter for the data attribute, but do not see how, or where I can guide myself. Simplified code for my custom data set is below. Can anyone guide me on how to set the data for a dataset so that the k-fold code will work?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions