although my code is right i keep getting these errors and get 0 for my assignment
what are these basic_sigmoid_test, sigmoid_test,…?!
[ValidateApp | INFO] Validating ‘/home/jovyan/work/submitted/courseraLearner/W2A1/Python_Basics_with_Numpy.ipynb’
[ValidateApp | INFO] Executing notebook with kernel: python3
Tests failed on 8 cell(s)! These tests could be hidden. Please check your submission.
The following cell failed:
print("basic_sigmoid(1) = " + str(basic_sigmoid(1)))
basic_sigmoid_test(basic_sigmoid)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-4-41d37f82dbf3> in <module>
1 print("basic_sigmoid(1) = " + str(basic_sigmoid(1)))
2
----> 3 basic_sigmoid_test(basic_sigmoid)
NameError: name 'basic_sigmoid_test' is not defined
==========================================================================================
The following cell failed:
t_x = np.array([1, 2, 3])
print("sigmoid(t_x) = " + str(sigmoid(t_x)))
sigmoid_test(sigmoid)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-9-51251e2b44ae> in <module>
2 print("sigmoid(t_x) = " + str(sigmoid(t_x)))
3
----> 4 sigmoid_test(sigmoid)
NameError: name 'sigmoid_test' is not defined
==========================================================================================
The following cell failed:
t_x = np.array([1, 2, 3])
print ("sigmoid_derivative(t_x) = " + str(sigmoid_derivative(t_x)))
sigmoid_derivative_test(sigmoid_derivative)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-11-fa7ab0e756fc> in <module>
2 print ("sigmoid_derivative(t_x) = " + str(sigmoid_derivative(t_x)))
3
----> 4 sigmoid_derivative_test(sigmoid_derivative)
NameError: name 'sigmoid_derivative_test' is not defined
==========================================================================================
The following cell failed:
# This is a 3 by 3 by 2 array, typically images will be (num_px_x, num_px_y,3) wher...
t_image = np.array([[[ 0.67826139, 0.29380381],
[ 0.90714982, 0.52835647],
[ 0.4215251 , 0.45017551]],
[[ 0.92814219, 0.96677647],
[ 0.85304703, 0.52351845],
[ 0.19981397, 0.27417313]],
[[ 0.60659855, 0.00533165],
[ 0.10820313, 0.49978937],
[ 0.34144279, 0.94630077]]])
print ("image2vector(image) = " + str(image2vector(t_image)))
image2vector_test(image2vector)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-13-333007a11e42> in <module>
14 print ("image2vector(image) = " + str(image2vector(t_image)))
15
---> 16 image2vector_test(image2vector)
NameError: name 'image2vector_test' is not defined
==========================================================================================
The following cell failed:
x = np.array([[0, 3, 4],
[1, 6, 4]])
print("normalizeRows(x) = " + str(normalize_rows(x)))
normalizeRows_test(normalize_rows)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-15-7c7c8401963e> in <module>
3 print("normalizeRows(x) = " + str(normalize_rows(x)))
4
----> 5 normalizeRows_test(normalize_rows)
NameError: name 'normalizeRows_test' is not defined
==========================================================================================
The following cell failed:
t_x = np.array([[9, 2, 5, 0, 0],
[7, 5, 0, 0 ,0]])
print("softmax(x) = " + str(softmax(t_x)))
softmax_test(softmax)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-17-589a35b2026d> in <module>
3 print("softmax(x) = " + str(softmax(t_x)))
4
----> 5 softmax_test(softmax)
NameError: name 'softmax_test' is not defined
==========================================================================================
The following cell failed:
yhat = np.array([.9, 0.2, 0.1, .4, .9])
y = np.array([1, 0, 0, 1, 1])
print("L1 = " + str(L1(yhat, y)))
L1_test(L1)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-21-3f77e39d7fb5> in <module>
3 print("L1 = " + str(L1(yhat, y)))
4
----> 5 L1_test(L1)
NameError: name 'L1_test' is not defined
==========================================================================================
The following cell failed:
yhat = np.array([.9, 0.2, 0.1, .4, .9])
y = np.array([1, 0, 0, 1, 1])
print("L2 = " + str(L2(yhat, y)))
L2_test(L2)
The error was:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-23-8bbdf5303d2e> in <module>
4 print("L2 = " + str(L2(yhat, y)))
5
----> 6 L2_test(L2)
NameError: name 'L2_test' is not defined