I am constantly getting this error while executing my L_Layer_model function, Would be great if some
one could help me out
I am constantly getting this error while executing my L_Layer_model function, Would be great if some
Hi @PAARTH_JAIN, you are using the global variables somewhere in the equations. That’s why, one of the tests are failing. When you call any of functions using these global variables, it won’t give you the desired result and the outcome will be different. Examine the equations carefully and you will certainly get it on your own, I bet.
I have attached the test scores that I have achieved while calling the functions for the same.
@PAARTH_JAIN Unfortunately that is merely a guess made by the autograder, and cannot be relied upon to isolate the error. It does suggest a class of possible errors that sometimes catch people out. Namely, either intentionally or unintentionally hard coding values instead of using the parameters passed into the function. A symptom of this would be code that doesn’t throw exceptions and even passes some tests, but fails assertions for value comparison when different input parameters are provided.
You might try examining test_utils.py to see places where that could occur.