Hi,
I have a small doubt in the cost function calculation in the optional lab session for linear regression.
When I select w=100, b=100 for the data x=[1,2] and y=[300,500], the appropriate cost function would be cost = 1/m * (100 ** 2 + 200 ** 2) but in the graph it is shown as 1/m * (5000 + 20000) .
But, if I select to divide the cost by 2m instead of m then I get the same value for the cost function.
But the representation on the graph is not correct I think.
Please correct me if I am wrong.
Regards,
Sudhakar