I finished the Practice Lab of Week 1. Everything looks OK but I received an error as below. My code passed the previous test correctly. I don’t know why.
UNIT TESTS
test_c3(my_dense_v)
AssertionError Traceback (most recent call last)
in
1 # UNIT TESTS
----> 2 test_c3(my_dense_v)
I got the same error in the unit test when I did not use np broadcast in the code.
def my_dense_v(A_in, W, b, g):
"""
Computes dense layer
Args:
A_in (ndarray (m,n)) : Data, m examples, n features each
W (ndarray (n,j)) : Weight matrix, n features per unit, j units
b (ndarray (1,j)) : bias vector, j units
g activation function (e.g. sigmoid, relu..)
Returns
A_out (tf.Tensor or ndarray (m,j)) : m examples, j units
"""
### START CODE HERE ###
# moderator edit: code removed
### END CODE HERE ###
return(A_out)
But if I replace np.tile with broadcast, I pass the unit test without any error:
### START CODE HERE ###
# moderator edit: code removed
### END CODE HERE ###
I was not aware of the Code of Conduct and did not know that I should not post my code on the forum. Can you share the link to the Code of Conduct or elaborate why we should not post our code on the forum?