1
0
Fork 0

Gradient descent for one variable

This commit is contained in:
neingeist 2014-10-02 21:32:24 +02:00
parent 514431e135
commit 2bf076c2fc

View file

@ -16,12 +16,7 @@ for iter = 1:num_iters
% Hint: While debugging, it can be useful to print out the values
% of the cost function (computeCost) and gradient here.
%
theta = theta - (alpha/m) * X' * (X*theta - y);
% ============================================================