I’m getting an error when typing my code for dw. Regardless of what I type it gives me the below Syntax error. Any ideas why this could be happening?
File “”, line 41
dw = np.dot(np.substract(A,Y).T,X)/m
^
SyntaxError: invalid syntax
I’m getting an error when typing my code for dw. Regardless of what I type it gives me the below Syntax error. Any ideas why this could be happening?
File “”, line 41
dw = np.dot(np.substract(A,Y).T,X)/m
^
SyntaxError: invalid syntax
That kind of error means that there is something incomplete about the previous line of code, typically a missing close parenthesis. So when you have trouble finding the problem, it typically means you are looking in the wrong place.
Note that the editor in the notebook is “syntax aware” and can be used to check the matching of your parentheses and brackets: just click a paren and it will highlight the match. Or not …