Are mini batches sampled randomly in Keras' Sequential.fit method() When you .fit a Keras Sequential() model, you can specify a batch_size parameter. I have noteiced it is sometimes defined independently from the actual dataset size. Does it mean that mini-batches are sampled randomly, instead of scrolling down the dataset from top to bottom, slice by slice?
If you set shuffle=True as an argument of the model.fit method, Keras will shuffle the dataset before splitting it into batches (source), otherwise the dataset will be processed sequentially.