"Linear_activation_forward_test_case" is not defined error


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.