C1W3 Assignment Problem

Hello Everyone,
I’m facing a problem with the assignment. I don’t have any indentation errors in the Exercise 2 code. Still, a mistake in Cost at initial w and b (zeros), and for Exercise 3 I have errors in calculating dj_db at initial w and b (zeros). I don’t understand why this is happening and the error is “X_train not defined for Exercise 2” and “np not defined for Exercise 3”.Please help me with this. Thanks in advance for your time.


Every time you open a notebook, you must first run all of cells starting from the top of the notebook.

This is how the required packages are imported and the data set is created.

Thank you so much Sir. Yes I got all the results correct!