Planar_data_classification_with_one_hidden_layer_

I’m Trying to run the code, which is given by coursera, I’m facing error, can you please see the below image.

That code is just given to you, but notice that it calls at least one of the functions you wrote (predict). Perhaps that function has some problem.

But before investigating further, here’s a simple experiment to try:

Kernel -> Restart and Clear Output
Save
Cell -> Run All

That will make sure that everything is in sync and WYSIWYG. Does it still fail after you do that?

1 Like

Yes, I Did a mistake in predict function, solved it. Thank you SIR.

1 Like

It’s great news that you were able to find the problem just based on that suggestion. Onward! :nerd_face: