C2W1 Gradient checking: Why there's 2e-7 as a condition of IF statement why not 1e-7?

in gradient_check function

if print_msg:
    if difference > **2e-7**:
        print ("\033[93m" + "There is a mistake in the backward propagation! difference = " + str(difference) + "\033[0m")
    else:
        print ("\033[92m" + "Your backward propagation works perfectly fine! difference = " + str(difference) + "\033[0m")

Hi Ahmed,

Welcome to the community!

You can have an idea from this thread though it doesn’t discuss about the same value what you have asked for, still you will get an idea of the occurrences regarding the use of epsilon as constants.
Let us know your understanding and we can always discuss this topic again!

Happy Learning!