Implementing a gradient function using numpy

42 views Asked by At

I am having trouble figuring out how to implement a specific gradient function with NumPy. I am sure my math is correct, but I have failed at coding it. I have attached my work and the parts of the code to be edited.

My attempt and the correct gradient

The blank template

I have tried attempting to understand how numpy arrays work, but this hasn't taken me anywhere.

0

There are 0 answers