HI,
I’m having TWO different problems with Week Two’s programming assignment.
FIRST, it keeps giving one error in my initialize_with_zeros() function, and apparently, the problem is with my b value? (Maybe I don’t understand what a scalar, “based on the bias” is… ???)
Since b is broadcast in this case (in the equation W.T*X + b), can’t I simply just set b = 0??
I’m receiving an “assert” error, when the invisible test code tries to assert b’s type to float (from within the test code, I obviously presume).
I’ve finished almost the whole rest of the assignment, but this function is upsetting me, because np.zeros() seems like such a basic numpy function that I need to be able to use correctly!!
SECONDLY,
When I run the model() code in the end, I’m getting an error to do with the dimensions of my arrays, and I can tell that I’m trying to np.dot, like, an (1, m) with a (4, m)… and I don’t know how to fix this error. I tried switching between np.multiply and np.dot… and various other combinations of np.sum, etc…
Are my two issues related??
I keep getting a 67% on this assignment.
I’ve passed ALL my other assignments. PLEASE, PLEASE, PLEAAAAASE somebody help me!