NameError Traceback (most recent call last)
in
----> 1 t_x = np.array([1, 2, 3])
2 print ("sigmoid_derivative(t_x) = " + str(sigmoid_derivative(t_x)))
3
4 sigmoid_derivative_test(sigmoid_derivative)
NameError: name ‘np’ is not defined
1 Like
There is a topic about that on the FAQ Thread. The short answer is that the problem is just that you have not executed the previous cells in the notebook. Try “Cell → Run All Above” and that should fix this issue.
2 Likes
BTW You filed this under DLS Course 2, but I think you are referring to the first Numpy Tutorial assignment in DLS Course 1. I will move it for you.