Best Practices: How to Split Dataset into Batches for Efficient Training?

16 Replies, 1993 Views

Hey! For how to split dataset into batches, I’ve found that shuffling and stratified sampling are key. I usually start with a batch size of 32 and adjust based on my GPU’s memory.

If you’re dealing with imbalanced data, check out the `imblearn` library. It’s got some great tools for oversampling and undersampling. Also, don’t forget to normalize your data before batching—it makes a huge difference.

Messages In This Thread



Users browsing this thread: 1 Guest(s)