Suppose my dataset has 1000 samples (X=1000) . I choose batch size of 32.
As 1000 is not perfectly divisible by 32 , remainder is 8.
My question is what happens to the last 8 examples. Are they considered? If they are, will they effect the efficiency of my model.
def next_batch(X, y, batchSize): for i in np.arange(0, X.shape, batchSize): yield (X[i:i + batchSize], y[i:i + batchSize])
This code is from a book and according to me this code is not considering the last remaining data points