Transform Data Attribute in a Dataset #5344
Unanswered
kyriakosschwarz
asked this question in
Q&A
Replies: 1 comment
-
exp = torch.cat([data.exp for data in dataset], dim=0)
|
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 created a
CustomDataset
based onInMemoryDataset
. When I get the first Data object from the dataset it looks like this:Lets say this dataset contains 1000 samples, then the
exp
attribute of this dataset would originate from a[1000, 908]
matrix.So, two questions:
[1000, 908]
exp
matrix from all theexp
[1,908]
vectors of all the 1000 samples?exp
attribute of all thePairData
objects and replace their currentexp
vectors?Beta Was this translation helpful? Give feedback.
All reactions