I get the correct expected output, but did not passed the test ! What could be possible wrong ?
May you didn’t used the parameters(variable) which is send to you in the function and you used the parameters which s shown to you in test cases so make sure you used the parameter which send (pass) to you in the function to make sure function generalized for all test cases
please feel free to ask any questions,
Thanks,
Abdelrahman
Note that there is more than one test there. So as @AbdElRhaman_Fakhry says, you must have somehow written the code so that it works with the first test, but then fails with the second one. But in the second test, you don’t even have the correct data types for the outputs, so it’s a little hard to come up with a theory for the nature of the bug. If you want to examine the other test case to see how it is different, it is the function:
linear_activation_forward_test
You can click “File → Open” and then open the file public_tests.py
to find the code.
Also note that you created this thread under MLS Course 1 Week 3, but it is asking about DLS Course 1 Week 4. I moved it for you by using the little “edit pencil” on the title of the thread.
Thank for the quick feedback @AbdElRhaman_Fakhry. I have not hardcoded the parameters, but effectively used those from the function
Thanks @paulinpaloalto I opened the file, but it looks a little bit cryptic for me so i remain stuck on this exercice