C1_W1_Lab03_Cost function

Hi there! There was no application of this portion in the lab. We used built-in modules later to get a view of the cost function.
So, What is the purpose of this one there?

Hi farhana_hossain.

Many of the assignments will ask you to implement a function, even if it is not be used later on. The purpose is to help students better understand the key concepts explained in the course!


okay got it!we can close this discussion.

Help please - I am getting this error… tried formatting - I get the right output in the module above but now I get this…

@Matthew_Gaunt, maybe you can compare your code for compute_cost() with the code that’s given in the lab that’s referenced in the title of this thread (and is shown in the first post on this thread).