One hiden layer- help

my code is correct but it’s keep giving me error.

in .¡:
parameters = nn_model(t_X, t_Y, 4, num_iterations=10000, print_cost=True)

Cost after iteration 0: 0.693198
Cost after iteration 1000: nan
Cost after iteration 2000: nan
Cost after iteration 3000: nan
Cost after iteration 4000: nan
Cost after iteration 5000: nan
Cost after iteration 6000: nan
Cost after iteration 7000: nan
Cost after iteration 8000: nan
Cost after iteration 9000: nan

AssertionError: Wrong values for W1

Please message your notebook (click my name and message as attachment)

There was a typo in the file, which was also caught by @Simoorach (cashe instead of cache)

2 Likes

Yes, thank you very much thank you for helping a lot, I appreciate it
the problem is that program couldn’t catch it, but anyway thank you again