I am really confused about the shuffle order of DataLoader in pytorch. Supposed I have a dataset: In scenario I, the code is: the shuffling result is 0,4,2,3,1. In scenario II, the code is: the shuffling result is 1,3,4,0,2. In scenario III, the code is: the shuffling result is 4,1,3,0,2. Can someone explain what is going on here? Answer Based
Tag: pytorch-dataloader
How to rearrange the sample order of a torch dataloader?
I have a “torch.utils.data.DataLoader”. I want to rearrange the order of the samples. Is it possible? Answer Yes, you can use torch.utils.data.Subset and specify the indices.
Dataloader throwing error TypeError: new(): data must be a sequence (got map)
I am trying to implement bidirectional LSTM on time series data. The main file calls the dataloader to load the data for the model. Main.py data_loader.py but I am unable to resolve the error TypeError: new(): data must be a sequence (got map) Following message is being received in the terminal: The input data is in the jason format (below