Basically I would like to do what this stackoverflow thread asks. But the answer does not work for me. All I want to do is copy the FashionMNIST dataset.
Here is a minimal example to show what I mean:
I would expect it to give me the original list and not a changed list. I only changed dat1 and not dat2.
Even if I try using deepcopy it doesn’t work. Can someone explain the inner workings and a solution?
In terms of solution, it depends on what would be your use case. Do you want to create multiple non-overlapping subsets from a Dataset or you want to have duplicate data from a Dataset?
Thank you for the link.
I would like to change the labels for an experiment I am doing. So in each run I change the class names and labels. Ideally, I load the dataset change the labels and the class names train the model and repeat several times.
But I change the labes and classes and then when I want to reload/ revert. It goes haywire because it copies the old dataset to the new dataset. I cannot reload or copy a temp dataset.
and just copy that Info back into the dataset in each run to ‘reset’ it. This also breaks. There are dependencies I don’t quite understand.
I would still like to know why I cannot copy a dataset without keeping the reference to the old dataset or reload a clean copy.