campusx-official / 100-days-of-machine-learning

1.14k stars 1.59k forks source link

Batch size not mentioned in Mini-Batch GD #9

Open RajKulk16 opened 1 year ago

RajKulk16 commented 1 year ago

For Mini-batch GD, the coef_der = -2 * (value) according to the code.

* It should be coef_der = -2/self.batch_size (value) **

n=1 in SGD and n = X_train.shape[1] in Batch. So, it should be n = self.batch_size in Mini-batch GD.