I keep getting zeros on the homework when I submit. I have refreshed it and I’ve started over. I’m now getting this error on the last cell which I don’t believe is apart of the assignment.
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)
Everything else seems to have run fine but I’m not sure.
Can you say a little about where you got your copy of the notebook from? Was it placed in your Files area when you started the assignment, or did you get it from somewhere else?
Sorry I jumped the gun and started on a fresh notebook. Really trying to get this submitted and graded. This is the input that is noted for each exercise.
There was a problem compiling the code from your notebook. Details:
matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)
And yes my forward propagation looks like this
def forward_propagation(X, parameters, n_y):
I’m going to have to do some research on the upgrade in the course, and which notebook file you should be using, and maybe chat with the DLAI staff tomorrow.
My forward_propagation() does use np.dot()
And I’m not getting any errors in my layer_sizes() function. Should I try running this cell w3_unittest.test_layer_sizes(layer_sizes)
When I first did the assignment I kept getting Assertion errors in the W3_unittest cells. Not for all of them but I think for the last 2 or 3 exercises.
Note that you can’t submit a renamed notebook for grading. The one you renamed should only be used for reference, but never add any more code to it, and do not try to submit it for grading.
When you get an assert, please post a screen capture image of it.
Check your layer_sizes() function carefully. Passing the tests in the notebook does not prove your code is perfect.
I only have 1 copy of the assignment now. The other notebooks have been deleted. As far as the layer_sizes I’ll keep looking but if I’m not getting an error I’m not sure where my mistake is. Here is the error in the initialize_parameters section when I run this cell
Note:
Actual values are not checked here in the unit tests (due to random initialization).