Hi DeepLearning.ai team,
Hope you are doing good. Thank you for the updated assignments with strict validation of types.
I got the following error in the model_test while initializing bias b using initialize_with_zeros:
Error: Data type mismatch in variable b. Got <class ‘float’> but expected type <class ‘numpy.float64’>
Error: Wrong shape for variable b.
The initialization of weights and bias inside initialize_with_zeros was:
b = 0 or(incorrectly typed and should have beenb = 0.) or b = np.float(0)
This was due to the assertion in initialize_with_zeros:
assert type(b) == float
then, inside the model, i overwrote the value of b from initialize_with_zeros with
b = np.float64(0)
This helped with test case.
Can you please guide on any of my incorrect assignment/usage?
Update history:
- strike
b = 0(should have typed asb = 0.