W2_Logistic Regression with a Neural Network mindset

Dear Community Members,

At 4.2: Initialization Parameters
Exercise 4 - initiate_with_zeros

I am getting AssertionError and cannot edit the cell to get rid of it.
screenshot attached below:

(Solution code removed, as posting it publicly is against the honour code of this community)

Furthermore, I presume the code I wrote in exercise 4 is wrong as the code is not conditioned to be TRUE.

I am seeking assistance on the same.

Hi @Deependu_Ghosh ,

Your error in the initialize_with_zeros is in the way you are initializing b:

The error comes when b 's typed is compared with float.

In Python, 0 is integer, and 0. is float.

Hope this helps.


@Juan_Olano …Truly thank you for the quick snippet!

Absolutely! Glad you could solve it :slight_smile: @Deependu_Ghosh