Replies: 1 comment 5 replies
-
I hope this code snippet helps: print(dataset.data.x.shape) # [750000, 1]
dataset.data.x = torch.ones(75000, 32)
print(dataset.data.x.shape) # [750000, 32] |
Beta Was this translation helpful? Give feedback.
5 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 Loaded Mnist dataset with Torchvision
mnist_test = MNIST(root='./data', train=False, download=True)
and used Squeezenet to extract features. squeeze net gave me 1000 features for each image and I used PCA to reduce them to 32.
Until here I have a list (10000, 32). These are my features.
I loaded Mnist superpixel from Pytorch geometric
superpixels_test = MNISTSuperpixels(root='./data', train=False)
I checked if the ordering of these 2 datasets is the same and the answer was yes.
So now I want to change each node feature with extracted features. for example, the first graph has 75,1 dimensionality and I want to change it to 75,32 same feature for all nodes of a graph.
When I run this code I see no change:
The last print says 75,1
Is there any other solution for this purpose?
Beta Was this translation helpful? Give feedback.
All reactions