Hello, I would like to implement a loop where iteration by iteration I select part of the dataset and train on it.
What is the best way to select the first x samples of my dataset? Something like this: train_dataset[0:300], train_dataset[300:600]
Another idea is to make that choice random but without repeating numbers at each iteration. So the idea is to select x
random numbers from 0, len(train_dataset)
and remove them after each iteration. But for that, I would need to slice the train_dataset based on one array, train_dataset[[1, 2, 3]]
, for example.
Any idea on how to do something like this?
Regards