Hi
i got an error in a really simple code within the function:
def initialize_with_zeros(dim):
my code is as follow:
YOUR CODE STARTS HERE
w = np.zeros((dim,1))
b = 0
YOUR CODE ENDS HERE
but in the test i see an error as follow:
AssertionError Traceback (most recent call last)
in
2 w, b = initialize_with_zeros(dim)
3
----> 4 assert type(b) == float
5 print ("w = " + str(w))
6 print ("b = " + str(b))
i also print the type of b in my function as can be seen bellow:
print(type(b))
assert(w.shape == (dim, 1))
assert(isinstance(b, float) or isinstance(b, int))
return w, b
and saw that it is
<class âintâ>
so i donât understand what is problem.
since i have started the course again i saw that few week ago the test was written differently
please assist