The error is in calculating A
. To use dot product, you have to use a comma (,) between two elements. For example, np.dot(A,B). Also, your cost formula is incorrect. Double-check the equation.
The error is in calculating A
. To use dot product, you have to use a comma (,) between two elements. For example, np.dot(A,B). Also, your cost formula is incorrect. Double-check the equation.