I am working to initialize to zeros by adding two lines of code to the for loop. I am reusing zeros intialization from the last course and getting an error for the second test assertion.
Anyone else passing first but not second test for W here? W2 is resulting in a error.
@Vortable Check if the zeros initialization from the previous course youâre referring to matches the dimension requirements of the current course. Sometimes, the structure or dimensional requirements change between courses, leading to unexpected errors.
/opt/conda/lib/python3.7/site-packages/dlai_tools/testing_utils.py in multiple_test(test_cases, target)
162 print(â\033[91mâ, len(test_cases) - success, " Tests failed")
163 raise AssertionError(
â 164 âNot all tests were passed for {}. Check your equations and avoid using global variables inside the function.â.format(target.name))
AssertionError: Not all tests were passed for initialize_parameters_zeros. Check your equations and avoid using global variables inside the function.
Thanks for the trace, but you left out the critical first line that actually shows the assertion. Thatâs what we need to see, right? The question is what does it not like.
If you donât actually see the assertion, then weâll probably need to actually look at your code, but we canât do that in a public thread. Please check your DMs for a message from me about how to do that.
The problem is that you literally copied the âinitâ function from DLS C1 W4 A1 verbatim. But that does not initialize the W values with zeros âŚ
We did it that way for âsymmetry breakingâ, but now what we are doing here is a concrete demonstration of why symmetry breaking is needed. We really set everything to zeros and then see that it wonât work.