"Linear_activation_forward_test_case" is not defined error

https://www.coursera.org/learn/neural-networks-deep-learning/programming/GY8CB/building-your-deep-neural-network-step-by-step/lab.

I am getting This error name ‘linear_activation_forward_test_case’ is not defined
though the code seems correct.

Most likely that just means you haven’t executed the earlier cells in the notebook. Try “Cell → Run All Above” and then run your cell again. You need to do this every time you reopen the notebook or do “Kernel → Restart”.

The point is that just having the code sitting there in a cell doesn’t do anything: you need to actually execute it to create the functions or do the imports or whatever the cell does.

1 Like
  • Many thanks for your response.