What is grad[0] and grad[1]? Are they Q0 and Q1?
What is grad[0] and grad[1]
Hi @Anuvrat99
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.
Hope this might helps
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.