Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C2W1 Update Gradient Checking v1.ipynb #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pipinstallaadit
Copy link

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):
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.

1 participant