I am having errors while running my code in the final test in week 3, course 1. It seems that the problems are with the test files. The image shows the error of the test function when running I have 3 other errors when running the code provided by the instructor (I write nothing in those lines of code)
The tests are fine. I believe your code for compute_cost_reg() has a defect.
The assert says that your code is not returning the expected data type (a scalar float value). Your code appears to be returning an array of values.