How to double elements in numpy array
You can use either numpy's .repeat() or .concatenate() functions
I have a numpy array with a shape similar to (3114, 7, 36, 64, 1). This example is a batch of 3114 sets of 7 images, each image 36 by 64 grayscale pixels. This is for a 3d Convolutional Neural Network, but what I want to do is double the batch size for more data for my model. Basically, I want to take these 3114 sets of 7 and duplicate each one to create a batch of size 6228. I know this is a pretty basic question, but I am not too familiar with numpy arrays. Thanks in advance!