please expln sir and also expln grad[0] and grad[1]
Why we are creating grad = np.zeros(([2],))
Hey @dhiru96027
We initialize our gradient vector grad
by using grad = np.zeros((2,)).
This creates a row vector that contains two values [0.,0.] both are zero.
The grad[0] and grad[1] are used to access the first and second values of the row vector grad.
We are creating grad
to store the updated gradient value.