ML Learning Specialization Error result "nan" in Week 3 final lab

Getting code result “nan” from final lab in week 3. Exercise 2
Cost at initial w and b (zeros): nan
This impacts the rest of the lab. Can I clear all answers and start over?

1 Like

“nan” means “not a number”.

It means your code for some calculation is returning an invalid result, like infinity or an undefined value.

2 Likes

Dear @murphneil,

Welcome to the Community!

I hope you’ve resolved the issue. If you’re still experiencing difficulties, please send your notebook file via DM for further assistance.


Keep Learning AI with DeepLearning.AI - Girijesh

Thank you. I think I have fixed that - now I am getting wrong output in the week 3 final lab - section 18. How do I share my notebook with you and what format?

1 Like

Mentor Girijesh asked to see your notebook file.

So download it as an ipynb file, and then send it to him by:

  • Clicking on his user name.
  • Then click on the Message button.
  • Use the upload tool to attach your ipynb file.
1 Like

How did you fixed the problem bro?

1 Like

Dear @murphneil,

I hope you’ve resolved the issue. If you’re still experiencing difficulties, please let me know.


Keep Learning AI with DeepLearning.AI - Girijesh

I completed the lab and the course. Thank you for all your help.

1 Like