I am on week#2 on linear regression test lab.
Here created the compute_cost function. Below expected value is given my code also got the same exact answer as expected value. Still on the next cell it runs the test case, it fails the assertion error. Their i see the w and b is different value than the one on the non editable cell. Can someone help me on this. PFA.
Your compute_cost function does not work correctly.
Here are a few things to check:
- Only add code where the notebook comments say to.
- When you add code, use the local variable names, not the global names that are used to call a function.
- Be aware that your code must work correctly for any set of data - not just duplicate the expected results using the few tests you can see in the notebook.