Joseph_Santarcangelo:

mini-batch gradient descent or stochastic gradient descent on a mini-batch


I’m not sure what stochastic gradient descent on a mini-batch is, since as far as my understanding is, stochastic gradient descent uses only one sample by definition.
Because you use a batch size of 5, your code applies mini-batch gradient descent.