Supervised ML, Week3, Practice Lab, Exercise 5

I have encountered this error and I am struggling with this. I do not know how to overcome this. I have not changed any original code. I would be grateful if anyone can help me with this.


I believe your compute_cost_reg function is returning the cost value as an array, rather than as a scalar.

Dear TMosh,

Thanks for your kind reply. I have solved my problem.

Best regard,