Skip to content

Conversation

@pipinstallaadit
Copy link
Contributor

The gradient_check_n function was missing the print_msg=False in the parameters which lead to the following error

TypeError: gradient_check_n() takes from 4 to 5 positional arguments but 6 were given

This is resolved by including print_msg=False in the function parameter thus making it the following:

def gradient_check_n(parameters, gradients, X, Y, epsilon=1e-7, print_msg=False):

The gradient_check_n function was missing the print_msg=False in the parameters which lead to the following error

TypeError: gradient_check_n() takes from 4 to 5 positional arguments but 6 were given

This is resolved by including print_msg=False in the function parameter thus making it the following:

def gradient_check_n(parameters, gradients, X, Y, epsilon=1e-7, print_msg=False):
@amanchadha amanchadha merged commit 4d09559 into amanchadha:master Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants