There might be a misunderstanding I’ve missed in your earlier post.
When I said your DataLoader would return a batch of shape [batch_size, seq_len, features], I was referring to the dimensions, e.g. [20, 100, 2].
In your custom Dataset you are directly returning the value of self.seq_len.
Instead you should create a data sample of the shape [seq_len, features].
I was assuming this format was already stored in your oudataframe.