I am interested to know, what happens when I choose batch_size=1 or batch_size=1000 or any other numbers in Keras.lstm.mode.fit() function for example when I am configuring batch_input_shape? Does this make effect on my final result and changing them?
I need for future prediction using batch_size=1 but affraid of getting bad/wrong result!
May someone explains the important effects of choosing batch_size from 1 to N numbers?
Batch size > 1 are used normally during training, not just to speed up the training process but also to learn better. Having a batch size > 1 lets the network learn the mistakes its making by looking at multiple samples and correcting them quickly. This in turn speeds up the process because the direction and magnitude of gradient is chosen more optimally compared to choosing when using batch size of 1.
– Nischal Hp Feb 23 '19 at 16:52