So, I’m having issues similar to the one found here (Week 3 assignment: bug in the test) with the following error ‘Tests failed on 6 cell(s)! These tests could be hidden. Please check your submission.’ as described on the post. Additionally it is caused by the third task within the notebook. Could it be that I’m struggling still with an older version of the notebook? Based on the prompts my notebook id is gqmzbdusqbiu. Any help from someone maintaining the notebook would be useful
So based on that and what I saw on public_testsV2 + the third exercise “Initialize the parameters” I see that there is maybe a mismatch with the test cases causing it to fail. Initially, I started with the same error mentioned in the previous point → Wrong dimensions for W1.
After that I started toying around with the test cases and managed to get the following → Wrong values for W1
Hint: Maybe with the provided notebook ID you can see also what I mean because I’ve changed a bit some values of the test that specific test case initialize_parameters_test.
Notice that all your values are positive. That means you used the wrong random function. The instructions tell you to use the np.random.randn, which gives a normal (Gaussian) distribution with \mu = 0 and \sigma = 1. That will give values that are both positive and negative and some of which may have absolute value > 1.
Also note that the b values should be zero, but yours are not.
The formatting of your output also doesn’t make sense. The braces don’t match on the b1 and b2 values. It looks like you are somehow interleaving multiple outputs there.
This causes you to fail the test case in the notebook, so there is no point in submitting to the grader until you fix the issues with the unit tests.
Sorry, but the mentors are just fellow student volunteers. We do not have the “superpower” to look at anyone else’s notebook. Only the course staff can do that.
Yes, it looks like you modified that line. The “Wl” as opposed to “W1” there will not end well, if that’s what it really says.
But perhaps this is all just a side effect of the way you “copy/pasted” the data. Things look a bit scrambled, as I mentioned above.
If you actually modified the file public_tests.py, that is not a good idea. If so, you should use the “Get a clean copy” procedure here to revert to the standard version. If you read all the way through that post, it talks about the other files besides the notebook.
Agree with @paulinpaloalto . Also check the shape of the parameters you are using do they match
Suggestion is to start with the fresh (clean copy) notebook.
Also, follow the suggestion given by @TMoshTip: Do not modify the test cases.
First of all thanks for the joint effort in clarifying the key points! Yes, the main issue related to using the wrong rand function. So by changing that, and reverting the test cases, everything was OK! But additional things pointed out in this discussion are overall valuable info for the future!