TypeError Traceback (most recent call last)
in
3 cost, cache = forward_propagation_n(X, Y, parameters)
4 gradients = backward_propagation_n(X, Y, cache)
----> 5 difference = gradient_check_n(parameters, gradients, X, Y, 1e-7, True)
6 expected_values = [0.2850931567761623, 1.1890913024229996e-07]
7 assert not(type(difference) == np.ndarray), “You are not using np.linalg.norm for numerator or denominator”
TypeError: gradient_check_n() takes from 4 to 5 positional arguments but 6 were given , THIS IS THE ERROR BUT it appears in the cell where I can’t edit
and this is my code I can’t find anything wrong with it
# GRADED FUNCTION: gradient_check_n
def gradient_check_n(parameters, gradients, X, Y, epsilon=1e-7):
# moderator edit: code removed - not allowed by the Code of Conduct