Data manipultation after set creation #5651
Replies: 1 comment 6 replies
-
You cannot directly manipulate the data via indexing on def my_transform(data):
if x <= 0.5:
data.y = 1
else:
data.y = 0
return data
dataset = Your_dataset(..., transform=my_transform) |
Beta Was this translation helpful? Give feedback.
6 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.
-
Is there a way to manipulate the data after I have already created the InMemoryDataset? After it was created I tried running
dataset[0].y = 1
and nothing happened. Note, that I purposefully left out they
to try to manipulate it after creation.BLUF: Can I add anything to the dataset using a loop?
Beta Was this translation helpful? Give feedback.
All reactions