Data type not understand in initializing function - course-1/ week2

TypeError Traceback (most recent call last)
in
1 dim = 2
----> 2 w, b = initialize_with_zeros(dim)
3
4 assert type(b) == float
5 print ("w = " + str(w))

in initialize_with_zeros(dim)
14
15 ### START CODE HERE ### (β‰ˆ 1 line of code)
β€”> 16 w = np.zeros(dim, 1)
17 b = 0.
18 ### END CODE HERE ###

TypeError: data type not understood

Blockquote

Welcome to the forums @Vyas,

I advise you to check the documentation for numpy.zeros β€” NumPy v1.20 Manual.
You pass an invalid argument to the method :slight_smile:

1 Like

shoot! Can’t belive i was stuck at this :skull:

1 Like

Good job @Vyas!

Before you move on, please edit and remove the solution code from your post now that you have succeeded in finding your bug.